@tinacms/cli 0.61.23 → 0.61.25

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/bin/tinacms CHANGED
@@ -1,4 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- require = require('esm')(module)
4
- require('../dist').init(process.argv)
3
+ require('../dist/index.js').init(process.argv)
package/dist/index.js CHANGED
@@ -302,7 +302,7 @@ var commander = __toModule(require("commander"));
302
302
 
303
303
  // package.json
304
304
  var name = "@tinacms/cli";
305
- var version = "0.61.23";
305
+ var version = "0.61.25";
306
306
 
307
307
  // src/cmds/audit/audit.ts
308
308
  var import_graphql = __toModule(require("@tinacms/graphql"));
@@ -1283,7 +1283,9 @@ export const queries = (client)=>({})
1283
1283
  export const client = ()=>{}
1284
1284
  export default client
1285
1285
  `);
1286
- await import_fs_extra3.default.outputFile(import_path5.default.join(tinaGeneratedPath, ".gitignore"), `db
1286
+ await import_fs_extra3.default.outputFile(import_path5.default.join(tinaGeneratedPath, ".gitignore"), `app
1287
+ db
1288
+ prebuild
1287
1289
  client.ts
1288
1290
  client.js
1289
1291
  types.ts
@@ -1411,7 +1413,7 @@ var compileFile = async (options, fileName) => {
1411
1413
  allowedTypes: ["js", "jsx", "tsx", "ts"],
1412
1414
  errorMessage: `Must provide a ${fileName}.{js,jsx,tsx,ts}`
1413
1415
  });
1414
- await transpile(inputFile, `${fileName}.js`, tinaTempPath, options.verbose, define, packageJSONFilePath);
1416
+ await transpile(inputFile, `${fileName}.cjs`, tinaTempPath, options.verbose, define, packageJSONFilePath);
1415
1417
  } catch (e) {
1416
1418
  await cleanup({ tinaTempPath });
1417
1419
  throw new BuildSchemaError(e);
@@ -1423,7 +1425,7 @@ var compileFile = async (options, fileName) => {
1423
1425
  });
1424
1426
  let returnObject = {};
1425
1427
  try {
1426
- const schemaFunc = require(import_path5.default.join(tinaTempPath, `${fileName}.js`));
1428
+ const schemaFunc = require(import_path5.default.join(tinaTempPath, `${fileName}.cjs`));
1427
1429
  returnObject = schemaFunc.default;
1428
1430
  await cleanup({ tinaTempPath });
1429
1431
  } catch (e) {
@@ -1498,6 +1500,7 @@ var transpile = async (inputFile, outputFile, tempDir, verbose, define, packageJ
1498
1500
  platform: "neutral",
1499
1501
  target: ["node10.4"],
1500
1502
  entryPoints: [prebuiltInputPath],
1503
+ format: "cjs",
1501
1504
  treeShaking: true,
1502
1505
  external: [...external, "./node_modules/*"],
1503
1506
  tsconfig: tempTsConfigPath,
@@ -1928,7 +1931,7 @@ var attachPath = async (ctx, next, _options) => {
1928
1931
  };
1929
1932
  var isProjectTs = async (rootPath2) => {
1930
1933
  const tinaPath = import_path9.default.join(rootPath2, ".tina");
1931
- return await (0, import_fs_extra6.pathExists)(import_path9.default.join(tinaPath, "schema.ts")) || await (0, import_fs_extra6.pathExists)(import_path9.default.join(tinaPath, "schema.tsx"));
1934
+ return await (0, import_fs_extra6.pathExists)(import_path9.default.join(tinaPath, "schema.ts")) || await (0, import_fs_extra6.pathExists)(import_path9.default.join(tinaPath, "schema.tsx")) || await (0, import_fs_extra6.pathExists)(import_path9.default.join(tinaPath, "config.ts")) || await (0, import_fs_extra6.pathExists)(import_path9.default.join(tinaPath, "config.tsx"));
1932
1935
  };
1933
1936
 
1934
1937
  // src/buildTina/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "0.61.23",
3
+ "version": "0.61.25",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -21,7 +21,7 @@
21
21
  ]
22
22
  },
23
23
  "devDependencies": {
24
- "@tinacms/scripts": "0.51.2",
24
+ "@tinacms/scripts": "0.51.3",
25
25
  "@types/clear": "0.1.0",
26
26
  "@types/cli-spinner": "^0.2.1",
27
27
  "@types/cors": "2.8.5",
@@ -52,11 +52,11 @@
52
52
  "@graphql-codegen/visitor-plugin-common": "^2.4.0",
53
53
  "@graphql-tools/graphql-file-loader": "^7.2.0",
54
54
  "@graphql-tools/load": "^7.3.2",
55
- "@tinacms/app": "0.0.22",
55
+ "@tinacms/app": "0.0.24",
56
56
  "@tinacms/datalayer": "0.2.4",
57
- "@tinacms/graphql": "0.63.15",
57
+ "@tinacms/graphql": "0.63.16",
58
58
  "@tinacms/metrics": "0.0.3",
59
- "@tinacms/schema-tools": "0.1.8",
59
+ "@tinacms/schema-tools": "0.1.9",
60
60
  "add": "^2.0.6",
61
61
  "ajv": "^6.12.3",
62
62
  "altair-express-middleware": "4.0.6",
@@ -70,11 +70,10 @@
70
70
  "cors": "^2.8.5",
71
71
  "dotenv": "^16.0.1",
72
72
  "esbuild": "^0.15.5",
73
- "esm": "3.2.25",
74
73
  "express": "^4.17.1",
75
74
  "fast-glob": "^3.2.4",
76
75
  "fs-extra": "^9.0.1",
77
- "graphql": "^15.1.0",
76
+ "graphql": "15.8.0",
78
77
  "ini": "^3.0.0",
79
78
  "js-yaml": "^4.0.0",
80
79
  "lodash": "^4.17.19",