@tinacms/cli 0.61.0 → 0.61.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 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -293,7 +293,7 @@ var commander = __toModule(require("commander"));
293
293
 
294
294
  // package.json
295
295
  var name = "@tinacms/cli";
296
- var version = "0.61.0";
296
+ var version = "0.61.1";
297
297
 
298
298
  // src/cmds/audit/audit.ts
299
299
  var import_graphql = __toModule(require("@tinacms/graphql"));
@@ -1332,13 +1332,11 @@ var resetGeneratedFolder = async ({
1332
1332
  usingTs
1333
1333
  }) => {
1334
1334
  try {
1335
- await import_fs_extra3.default.rm(tinaGeneratedPath, {
1336
- recursive: true
1337
- });
1335
+ await import_fs_extra3.default.emptyDir(tinaGeneratedPath);
1338
1336
  } catch (e) {
1339
1337
  console.log(e);
1340
1338
  }
1341
- await import_fs_extra3.default.mkdir(tinaGeneratedPath);
1339
+ await import_fs_extra3.default.mkdirp(tinaGeneratedPath);
1342
1340
  const ext = usingTs ? "ts" : "js";
1343
1341
  await import_fs_extra3.default.writeFile(import_path4.default.join(tinaGeneratedPath, `types.${ext}`), `
1344
1342
  export const queries = (client)=>({})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "0.61.0",
3
+ "version": "0.61.1",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -53,7 +53,7 @@
53
53
  "@graphql-tools/graphql-file-loader": "^7.2.0",
54
54
  "@graphql-tools/load": "^7.3.2",
55
55
  "@tinacms/datalayer": "0.2.2",
56
- "@tinacms/graphql": "0.62.0",
56
+ "@tinacms/graphql": "0.62.1",
57
57
  "@tinacms/metrics": "0.0.3",
58
58
  "@tinacms/schema-tools": "0.0.9",
59
59
  "add": "^2.0.6",