@tinacms/scripts 1.6.1 → 1.6.3

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 +11 -0
  2. package/package.json +4 -5
package/dist/index.js CHANGED
@@ -303,6 +303,17 @@ See --help for a list of available commands.`
303
303
  console.log("skipping @tinacms/app");
304
304
  return;
305
305
  }
306
+ if (["@tinacms/web-components"].includes(packageJSON.name)) {
307
+ await esbuild({
308
+ entryPoints: [path.join(process.cwd(), entry)],
309
+ bundle: true,
310
+ platform: "browser",
311
+ target: "esnext",
312
+ format: "esm",
313
+ outfile: path.join(process.cwd(), "dist", `${outInfo.outfile}.js`)
314
+ });
315
+ return true;
316
+ }
306
317
  external.forEach((ext) => globals[ext] = "NOOP");
307
318
  const isExternal = (id) => external.some((dep) => id === dep || id.startsWith(`${dep}/`));
308
319
  if (target === "node") {
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@tinacms/scripts",
3
3
  "type": "module",
4
- "version": "1.6.1",
4
+ "version": "1.6.3",
5
5
  "main": "dist/index.js",
6
6
  "files": [
7
7
  "dist",
8
8
  "bin/*",
9
- "__mocks__/styleMock.js",
10
- ".env"
9
+ "__mocks__/styleMock.js"
11
10
  ],
12
11
  "license": "Apache-2.0",
13
12
  "bin": {
@@ -17,12 +16,12 @@
17
16
  "chalk": "^5.4.1",
18
17
  "chokidar": "^3.6.0",
19
18
  "commander": "^7.2.0",
20
- "esbuild": "^0.24.2",
19
+ "esbuild": "^0.28.1",
21
20
  "fs-extra": "^11.3.0",
22
21
  "json-diff": "^1.0.6",
23
22
  "tsup": "^8.3.6",
24
23
  "typescript": "^5.7.3",
25
- "vite": "^4.5.9"
24
+ "vite": "^6.4.3"
26
25
  },
27
26
  "devDependencies": {
28
27
  "@types/fs-extra": "^11.0.4",