UNPKG

create-testplane

Version:

A tool for fast and simple Testplane configuration

37 lines 1.48 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pluginSuffixes = exports.PMS = exports.DEFAULT_PM = exports.CONFIG_NAMES = exports.PACKAGE_JSON = void 0; exports.PACKAGE_JSON = "package.json"; exports.CONFIG_NAMES = { TESTPLANE_NEW_TS: "testplane.config.ts", TESTPLANE_NEW_CTS: "testplane.config.cts", TESTPLANE_NEW_JS: "testplane.config.js", TESTPLANE_NEW_CJS: "testplane.config.cjs", TESTPLANE_TS: ".testplane.conf.ts", TESTPLANE_JS: ".testplane.conf.js", HERMIONE_TS: ".hermione.conf.ts", // drop after testplane@9 HERMIONE_JS: ".hermione.conf.js", // drop after testplane@9 }; exports.DEFAULT_PM = "npm"; exports.PMS = { npm: { lock: "package-lock.json", init: "init -y", install: "install --save-dev", withRegistry: (command, registry) => `${command} --registry ${registry}`, }, yarn: { lock: "yarn.lock", init: "init -y", install: "add -D", withRegistry: (command, registry) => `export YARN_REGISTRY=${registry} && export YARN_NPM_REGISTRY_SERVER=${registry} && ${command}`, }, pnpm: { lock: "pnpm-lock.yml", init: "init", install: "add --save-dev", withRegistry: (command, registry) => `${command} --registry ${registry}`, }, }; exports.pluginSuffixes = ["/plugin", "/testplane", "/hermione"]; // drop hermione suffix after testplane@2 //# sourceMappingURL=packageManagement.js.map