pencil-team 0.1.0 → 0.1.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/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9273,8 +9273,10 @@ class PenSync {
|
|
|
9273
9273
|
});
|
|
9274
9274
|
}
|
|
9275
9275
|
loadLocalFile() {
|
|
9276
|
-
if (!fs3.existsSync(this.options.filePath))
|
|
9276
|
+
if (!fs3.existsSync(this.options.filePath)) {
|
|
9277
|
+
fs3.writeFileSync(this.options.filePath, "{}");
|
|
9277
9278
|
return;
|
|
9279
|
+
}
|
|
9278
9280
|
try {
|
|
9279
9281
|
const content = fs3.readFileSync(this.options.filePath, "utf-8");
|
|
9280
9282
|
const json = JSON.parse(content);
|