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.
- package/mops.js +5 -1
- 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
|
-
|
|
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) {
|