mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-20 22:52:46 -05:00
558fcafc71
* fix: format code prettier, enable ci * chore: add trivago import prettier pluggin
13 lines
417 B
TypeScript
13 lines
417 B
TypeScript
import { DOMAIN_SERVERS, PORT_SERVER_1, TARBALL } from '../config.functional';
|
|
|
|
export default function (name, version = '0.0.0', port = PORT_SERVER_1, domain = `http://${DOMAIN_SERVERS}:${port}`, fileName = TARBALL, readme = 'this is a readme'): any {
|
|
return {
|
|
name,
|
|
version,
|
|
readme,
|
|
dist: {
|
|
shasum: 'fake',
|
|
tarball: `${domain}/${encodeURIComponent(name)}/-/${fileName}`,
|
|
},
|
|
};
|
|
}
|