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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. 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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pencil-team",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "pencil-team": "dist/index.js"