@tinacms/scripts 1.0.3 → 1.1.0

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 +9 -3
  2. package/package.json +4 -3
package/dist/index.js CHANGED
@@ -378,6 +378,7 @@ var config = (cwd = "") => {
378
378
  },
379
379
  content: [_path2.default.join(cwd, "src/**/*.{vue,js,ts,jsx,tsx,svelte}")],
380
380
  plugins: [
381
+ _chunkNYQD2IPWjs.__require.call(void 0, "@tailwindcss/container-queries"),
381
382
  _chunkNYQD2IPWjs.__require.call(void 0, "@tailwindcss/typography")({
382
383
  className: "tina-prose"
383
384
  }),
@@ -404,6 +405,10 @@ var buildIt = async (entryPoint, packageJSON) => {
404
405
  return { outdir, outfile, relativeOutfile };
405
406
  };
406
407
  const outInfo = out(entry);
408
+ if (["@tinacms/app"].includes(packageJSON.name)) {
409
+ console.log("skipping @tinacms/app");
410
+ return;
411
+ }
407
412
  external.forEach((ext) => globals[ext] = "NOOP");
408
413
  if (target === "node") {
409
414
  if (["@tinacms/graphql", "@tinacms/datalayer"].includes(packageJSON.name)) {
@@ -442,14 +447,15 @@ var buildIt = async (entryPoint, packageJSON) => {
442
447
  target: "es2020",
443
448
  format: "esm",
444
449
  outfile: _path2.default.join(process.cwd(), "dist", "index.es.js"),
445
- external
450
+ external: Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2))
446
451
  });
447
- const appMDXPath = _path2.default.join(process.cwd(), "..", "app", "appFiles", "src", "fields", "rich-text", "monaco", "mdx.js");
448
452
  await _esbuild.build.call(void 0, {
449
453
  entryPoints: [_path2.default.join(process.cwd(), entry)],
450
454
  bundle: true,
455
+ platform: "browser",
456
+ target: "es2020",
451
457
  format: "esm",
452
- outfile: appMDXPath,
458
+ outfile: _path2.default.join(process.cwd(), "dist", "index.browser.es.js"),
453
459
  external: Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2))
454
460
  });
455
461
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/scripts",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",
@@ -17,13 +17,14 @@
17
17
  "@babel/plugin-transform-modules-commonjs": "^7.15.0",
18
18
  "@sucrase/jest-plugin": "^2.1.1",
19
19
  "@tailwindcss/aspect-ratio": "^0.4.0",
20
+ "@tailwindcss/container-queries": "^0.1.0",
20
21
  "@tailwindcss/line-clamp": "^0.3.1",
21
22
  "@tailwindcss/typography": "^0.5.0",
22
23
  "@types/inquirer": "^6.5.0",
23
24
  "chalk": "^4.1.1",
24
25
  "chokidar": "^3.5.2",
25
26
  "commander": "^7.2.0",
26
- "esbuild": "^0.12.9",
27
+ "esbuild": "^0.15.5",
27
28
  "esbuild-jest": "^0.5.0",
28
29
  "execa": "^5.1.1",
29
30
  "express": "^4.17.1",
@@ -34,7 +35,7 @@
34
35
  "normalize-path": "^3.0.0",
35
36
  "postcss": "^8.4.5",
36
37
  "postcss-nested": "^5.0.6",
37
- "tailwindcss": "^3.0.13",
38
+ "tailwindcss": "^3.2.7",
38
39
  "tsup": "^4.12.5",
39
40
  "typescript": "^4.2.2",
40
41
  "vite": "^2.4.3",