ic-mops 1.5.1 → 1.6.1
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/CHANGELOG.md +6 -0
- package/bundle/cli.tgz +0 -0
- package/cli.ts +1 -1
- package/commands/toolchain/index.ts +5 -2
- package/dist/cli.js +1 -1
- package/dist/commands/toolchain/index.js +5 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Mops CLI Changelog
|
|
2
2
|
|
|
3
|
+
## 1.6.1
|
|
4
|
+
- Fix `mops i` alias for `mops install` command (was broken in 1.3.0)
|
|
5
|
+
|
|
6
|
+
## 1.6.0
|
|
7
|
+
- Add support for `.bash_profile` and `.zprofile` files to `mops toolchain init` command
|
|
8
|
+
|
|
3
9
|
## 1.5.1
|
|
4
10
|
- Collapsible output of `mops bench` in a CI environment
|
|
5
11
|
- Fix regression in `mops bench` without `dfx.json` file (by @rvanasa)
|
package/bundle/cli.tgz
CHANGED
|
Binary file
|
package/cli.ts
CHANGED
|
@@ -99,7 +99,7 @@ program
|
|
|
99
99
|
.option('--verbose')
|
|
100
100
|
.addOption(new Option('--lock <action>', 'Lockfile action').choices(['check', 'update', 'ignore']))
|
|
101
101
|
.action(async (options) => {
|
|
102
|
-
if (process.argv.at(-1) !== 'install') {
|
|
102
|
+
if (process.argv.at(-1) !== 'install' && process.argv.at(-1) !== 'i') {
|
|
103
103
|
console.log(`${chalk.red('Error:')} ${chalk.yellow('mops install')} command installs all dependencies.\nUse ${chalk.green(`mops add ${process.argv.at(-1)}`)} instead.`);
|
|
104
104
|
process.exit(1);
|
|
105
105
|
}
|
|
@@ -79,13 +79,16 @@ async function init({reset = false, silent = false} = {}) {
|
|
|
79
79
|
|
|
80
80
|
let zshrc = path.join(os.homedir(), '.zshrc');
|
|
81
81
|
let bashrc = path.join(os.homedir(), '.bashrc');
|
|
82
|
+
let bashProfile = path.join(os.homedir(), '.bash_profile');
|
|
83
|
+
let zprofile = path.join(os.homedir(), '.zprofile');
|
|
82
84
|
|
|
83
|
-
let shellConfigFiles = [bashrc, zshrc, process.env.GITHUB_ENV || ''].map(x => x).filter((file) => {
|
|
85
|
+
let shellConfigFiles = [bashrc, zshrc, bashProfile, zprofile, process.env.GITHUB_ENV || ''].map(x => x).filter((file) => {
|
|
84
86
|
return fs.existsSync(file);
|
|
85
87
|
});
|
|
86
88
|
|
|
87
89
|
if (shellConfigFiles.length === 0) {
|
|
88
|
-
console.error('Shell config files not found:
|
|
90
|
+
console.error('Shell config files not found: .bashrc, .zshrc, .bash_profile, .zprofile');
|
|
91
|
+
console.log('TIP: You can add "export DFX_MOC_PATH=moc-wrapper" to your shell config file manually to initialize Mops toolchain');
|
|
89
92
|
process.exit(1);
|
|
90
93
|
}
|
|
91
94
|
|
package/dist/cli.js
CHANGED
|
@@ -81,7 +81,7 @@ program
|
|
|
81
81
|
.option('--verbose')
|
|
82
82
|
.addOption(new Option('--lock <action>', 'Lockfile action').choices(['check', 'update', 'ignore']))
|
|
83
83
|
.action(async (options) => {
|
|
84
|
-
if (process.argv.at(-1) !== 'install') {
|
|
84
|
+
if (process.argv.at(-1) !== 'install' && process.argv.at(-1) !== 'i') {
|
|
85
85
|
console.log(`${chalk.red('Error:')} ${chalk.yellow('mops install')} command installs all dependencies.\nUse ${chalk.green(`mops add ${process.argv.at(-1)}`)} instead.`);
|
|
86
86
|
process.exit(1);
|
|
87
87
|
}
|
|
@@ -71,11 +71,14 @@ async function init({ reset = false, silent = false } = {}) {
|
|
|
71
71
|
catch { }
|
|
72
72
|
let zshrc = path.join(os.homedir(), '.zshrc');
|
|
73
73
|
let bashrc = path.join(os.homedir(), '.bashrc');
|
|
74
|
-
let
|
|
74
|
+
let bashProfile = path.join(os.homedir(), '.bash_profile');
|
|
75
|
+
let zprofile = path.join(os.homedir(), '.zprofile');
|
|
76
|
+
let shellConfigFiles = [bashrc, zshrc, bashProfile, zprofile, process.env.GITHUB_ENV || ''].map(x => x).filter((file) => {
|
|
75
77
|
return fs.existsSync(file);
|
|
76
78
|
});
|
|
77
79
|
if (shellConfigFiles.length === 0) {
|
|
78
|
-
console.error('Shell config files not found:
|
|
80
|
+
console.error('Shell config files not found: .bashrc, .zshrc, .bash_profile, .zprofile');
|
|
81
|
+
console.log('TIP: You can add "export DFX_MOC_PATH=moc-wrapper" to your shell config file manually to initialize Mops toolchain');
|
|
79
82
|
process.exit(1);
|
|
80
83
|
}
|
|
81
84
|
// update all existing shell config files
|
package/dist/package.json
CHANGED