@tinacms/scripts 0.0.0-20230310182224 → 0.0.0-20230315224708
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/dist/index.js +4 -8
- 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)) {
|
|
@@ -445,14 +449,6 @@ var buildIt = async (entryPoint, packageJSON) => {
|
|
|
445
449
|
outfile: _path2.default.join(process.cwd(), "dist", "index.es.js"),
|
|
446
450
|
external
|
|
447
451
|
});
|
|
448
|
-
const appMDXPath = _path2.default.join(process.cwd(), "..", "app", "appFiles", "src", "fields", "rich-text", "monaco", "mdx.js");
|
|
449
|
-
await _esbuild.build.call(void 0, {
|
|
450
|
-
entryPoints: [_path2.default.join(process.cwd(), entry)],
|
|
451
|
-
bundle: true,
|
|
452
|
-
format: "esm",
|
|
453
|
-
outfile: appMDXPath,
|
|
454
|
-
external: Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2))
|
|
455
|
-
});
|
|
456
452
|
} else {
|
|
457
453
|
await _esbuild.build.call(void 0, {
|
|
458
454
|
entryPoints: [_path2.default.join(process.cwd(), entry)],
|