@tinacms/scripts 1.0.4 → 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 +8 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -405,6 +405,10 @@ var buildIt = async (entryPoint, packageJSON) => {
405
405
  return { outdir, outfile, relativeOutfile };
406
406
  };
407
407
  const outInfo = out(entry);
408
+ if (["@tinacms/app"].includes(packageJSON.name)) {
409
+ console.log("skipping @tinacms/app");
410
+ return;
411
+ }
408
412
  external.forEach((ext) => globals[ext] = "NOOP");
409
413
  if (target === "node") {
410
414
  if (["@tinacms/graphql", "@tinacms/datalayer"].includes(packageJSON.name)) {
@@ -443,14 +447,15 @@ var buildIt = async (entryPoint, packageJSON) => {
443
447
  target: "es2020",
444
448
  format: "esm",
445
449
  outfile: _path2.default.join(process.cwd(), "dist", "index.es.js"),
446
- external
450
+ external: Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2))
447
451
  });
448
- const appMDXPath = _path2.default.join(process.cwd(), "..", "app", "appFiles", "src", "fields", "rich-text", "monaco", "mdx.js");
449
452
  await _esbuild.build.call(void 0, {
450
453
  entryPoints: [_path2.default.join(process.cwd(), entry)],
451
454
  bundle: true,
455
+ platform: "browser",
456
+ target: "es2020",
452
457
  format: "esm",
453
- outfile: appMDXPath,
458
+ outfile: _path2.default.join(process.cwd(), "dist", "index.browser.es.js"),
454
459
  external: Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2))
455
460
  });
456
461
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/scripts",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",