@tinacms/scripts 0.0.0-20240817171706 → 0.0.0-20240829235042

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 +6 -19
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -268,14 +268,6 @@ var buildIt = async (entryPoint, packageJSON) => {
268
268
  // development, which we don't want to expose our users to.
269
269
  external: Object.keys(__spreadValues({}, peerDeps2))
270
270
  });
271
- await (0, import_esbuild.build)({
272
- entryPoints: [import_node_path.default.join(process.cwd(), entry)],
273
- bundle: true,
274
- conditions: ["worker"],
275
- target: "es2020",
276
- format: "esm",
277
- outfile: import_node_path.default.join(process.cwd(), "dist", "index.edge.mjs")
278
- });
279
271
  } else {
280
272
  await (0, import_esbuild.build)({
281
273
  entryPoints: [import_node_path.default.join(process.cwd(), entry)],
@@ -285,17 +277,6 @@ var buildIt = async (entryPoint, packageJSON) => {
285
277
  external,
286
278
  target: "node12"
287
279
  });
288
- if (packageJSON.module) {
289
- await (0, import_esbuild.build)({
290
- entryPoints: [import_node_path.default.join(process.cwd(), entry)],
291
- bundle: true,
292
- platform: "node",
293
- target: "es2020",
294
- format: "esm",
295
- outfile: outInfo.outfile ? import_node_path.default.join(process.cwd(), "dist", `${outInfo.outfile}.mjs`) : import_node_path.default.join(process.cwd(), "dist", "index.mjs"),
296
- external
297
- });
298
- }
299
280
  }
300
281
  const extension = import_node_path.default.extname(entry);
301
282
  await import_fs_extra.default.writeFileSync(
@@ -331,6 +312,12 @@ var buildIt = async (entryPoint, packageJSON) => {
331
312
  sourcemap: false,
332
313
  // true | 'inline' (note: inline will go straight into your bundle size)
333
314
  rollupOptions: {
315
+ onwarn(warning, warn) {
316
+ if (warning.code === "MODULE_LEVEL_DIRECTIVE") {
317
+ return;
318
+ }
319
+ warn(warning);
320
+ },
334
321
  // /**
335
322
  // * FIXME: rollup-plugin-node-polyfills is only needed for node targets
336
323
  // */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/scripts",
3
- "version": "0.0.0-20240817171706",
3
+ "version": "0.0.0-20240829235042",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",