@mapples/cli 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package-list.json +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52904,15 +52904,15 @@ const installPackage = (packageName, version, packageManager) => {
|
|
|
52904
52904
|
let command;
|
|
52905
52905
|
switch (packageManager) {
|
|
52906
52906
|
case 'yarn':
|
|
52907
|
-
command = `yarn add ${packageName}@${version}`;
|
|
52907
|
+
command = `yarn add ${packageName}@${version} --exact`;
|
|
52908
52908
|
break;
|
|
52909
52909
|
case 'pnpm':
|
|
52910
|
-
command = `pnpm add ${packageName}@${version}`;
|
|
52910
|
+
command = `pnpm add ${packageName}@${version} --save-exact`;
|
|
52911
52911
|
break;
|
|
52912
52912
|
default:
|
|
52913
|
-
command = `npm install ${packageName}@${version}`;
|
|
52913
|
+
command = `npm install ${packageName}@${version} --save-exact`;
|
|
52914
52914
|
}
|
|
52915
|
-
console.log(chalk.blue(`Installing ${packageName}@${version}...`));
|
|
52915
|
+
console.log(chalk.blue(`Installing ${packageName}@${version} (exact version)...`));
|
|
52916
52916
|
require$$1$3.execSync(command, { stdio: 'inherit' });
|
|
52917
52917
|
console.log(chalk.green(`✓ Installed ${packageName}@${version}`));
|
|
52918
52918
|
}
|