@tinacms/scripts 1.0.4 → 1.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 +13 -7
  2. package/package.json +3 -5
package/dist/index.js CHANGED
@@ -177,6 +177,7 @@ var config = (cwd = "") => {
177
177
  3: "12px",
178
178
  3.5: "14px",
179
179
  4: "16px",
180
+ 4.5: "18px",
180
181
  5: "20px",
181
182
  6: "24px",
182
183
  7: "28px",
@@ -405,6 +406,10 @@ var buildIt = async (entryPoint, packageJSON) => {
405
406
  return { outdir, outfile, relativeOutfile };
406
407
  };
407
408
  const outInfo = out(entry);
409
+ if (["@tinacms/app"].includes(packageJSON.name)) {
410
+ console.log("skipping @tinacms/app");
411
+ return;
412
+ }
408
413
  external.forEach((ext) => globals[ext] = "NOOP");
409
414
  if (target === "node") {
410
415
  if (["@tinacms/graphql", "@tinacms/datalayer"].includes(packageJSON.name)) {
@@ -422,7 +427,7 @@ var buildIt = async (entryPoint, packageJSON) => {
422
427
  platform: "node",
423
428
  target: "es2020",
424
429
  format: "esm",
425
- outfile: _path2.default.join(process.cwd(), "dist", "index.es.js"),
430
+ outfile: _path2.default.join(process.cwd(), "dist", "index.mjs"),
426
431
  external
427
432
  });
428
433
  } else if (["@tinacms/mdx"].includes(packageJSON.name)) {
@@ -442,15 +447,16 @@ var buildIt = async (entryPoint, packageJSON) => {
442
447
  platform: "node",
443
448
  target: "es2020",
444
449
  format: "esm",
445
- outfile: _path2.default.join(process.cwd(), "dist", "index.es.js"),
446
- external
450
+ outfile: _path2.default.join(process.cwd(), "dist", "index.mjs"),
451
+ external: Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2))
447
452
  });
448
- const appMDXPath = _path2.default.join(process.cwd(), "..", "app", "appFiles", "src", "fields", "rich-text", "monaco", "mdx.js");
449
453
  await _esbuild.build.call(void 0, {
450
454
  entryPoints: [_path2.default.join(process.cwd(), entry)],
451
455
  bundle: true,
456
+ platform: "browser",
457
+ target: "es2020",
452
458
  format: "esm",
453
- outfile: appMDXPath,
459
+ outfile: _path2.default.join(process.cwd(), "dist", "index.browser.mjs"),
454
460
  external: Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2))
455
461
  });
456
462
  } else {
@@ -472,7 +478,7 @@ var buildIt = async (entryPoint, packageJSON) => {
472
478
  {
473
479
  name: "vite-plugin-tina",
474
480
  config: (_, env) => {
475
- let plugins = [];
481
+ const plugins = [];
476
482
  const tw = _tailwindcss2.default.call(void 0, config(process.cwd()));
477
483
  plugins.push(_nesting2.default);
478
484
  plugins.push(_postcssnested2.default);
@@ -494,7 +500,7 @@ var buildIt = async (entryPoint, packageJSON) => {
494
500
  entry: _path2.default.resolve(process.cwd(), entry),
495
501
  name: packageJSON.name,
496
502
  fileName: (format) => {
497
- return format === "umd" ? `${outInfo.outfile}.js` : `${outInfo.outfile}.es.js`;
503
+ return format === "umd" ? `${outInfo.outfile}.js` : `${outInfo.outfile}.mjs`;
498
504
  }
499
505
  },
500
506
  outDir: outInfo.outdir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/scripts",
3
- "version": "1.0.4",
3
+ "version": "1.1.1",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",
@@ -25,12 +25,11 @@
25
25
  "chokidar": "^3.5.2",
26
26
  "commander": "^7.2.0",
27
27
  "esbuild": "^0.15.5",
28
- "esbuild-jest": "^0.5.0",
29
28
  "execa": "^5.1.1",
30
29
  "express": "^4.17.1",
31
30
  "fs-extra": "^9.0.1",
32
31
  "identity-obj-proxy": "^3.0.0",
33
- "jest": "^27.0.6",
32
+ "jest": "^29.5.0",
34
33
  "meow": "^10.0.1",
35
34
  "normalize-path": "^3.0.0",
36
35
  "postcss": "^8.4.5",
@@ -38,8 +37,7 @@
38
37
  "tailwindcss": "^3.2.7",
39
38
  "tsup": "^4.12.5",
40
39
  "typescript": "^4.2.2",
41
- "vite": "^2.4.3",
42
- "vite-plugin-dts": "^0.5.3",
40
+ "vite": "^4.3.9",
43
41
  "yargs": "^17.0.1"
44
42
  },
45
43
  "scripts": {