ic-mops 0.13.0 → 0.13.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.
Files changed (2) hide show
  1. package/mops.js +5 -1
  2. package/package.json +1 -1
package/mops.js CHANGED
@@ -194,7 +194,11 @@ export function writeConfig(config, configFile = getClosestConfigFile()) {
194
194
  devDeps[name] = repo || path || version;
195
195
  });
196
196
 
197
- fs.writeFileSync(configFile, TOML.stringify(config).trim());
197
+ let text = TOML.stringify(config).trim();
198
+ if (fs.existsSync(configFile) && fs.readFileSync(configFile).toString().endsWith('\n')) {
199
+ text += '\n';
200
+ }
201
+ fs.writeFileSync(configFile, text);
198
202
  }
199
203
 
200
204
  export function formatDir(name, version) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "cli.js"