@tinacms/scripts 1.1.2 → 1.1.4

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/LICENSE CHANGED
@@ -1,12 +1,4 @@
1
- Copyright (c) 2023-present Forestry.io Holdings Inc.
2
-
3
- Portions of the TinaCMS software are licensed as follows:
4
-
5
- * All software that resides under the "packages/@tinacms/datalayer/" and the "packages/@tinacms/graphql/" directories (the "Tina Data Layer"), is licensed under the license defined in "packages/@tinacms/datalayer/LICENSE".
6
-
7
- * All software outside of the above-mentioned directories is available under the "Apache 2.0" license as set forth below.
8
-
9
- Apache License
1
+ Apache License
10
2
  Version 2.0, January 2004
11
3
  http://www.apache.org/licenses/
12
4
 
package/dist/index.js CHANGED
@@ -82,13 +82,11 @@ var watch = () => {
82
82
  const json = JSON.parse(stdout);
83
83
  const watchPaths = [];
84
84
  json.forEach((pkg) => {
85
- if (pkg.path.includes("/packages/")) {
85
+ if (pkg.path.includes(_path2.default.join("packages", ""))) {
86
86
  watchPaths.push(pkg.path);
87
87
  }
88
88
  });
89
- _chokidar2.default.watch(watchPaths.map((p) => _path2.default.join(p, "src", "**/*")), {
90
- ignored: ["**/spec/**/*", "node_modules"]
91
- }).on("change", async (path2) => {
89
+ _chokidar2.default.watch(watchPaths.map((p) => _path2.default.join(p, "src", "**/*")), { ignored: ["**/spec/**/*", "node_modules"] }).on("change", async (path2) => {
92
90
  const changedPackagePath = watchPaths.find((p) => path2.startsWith(p));
93
91
  await run({ dir: changedPackagePath });
94
92
  });
@@ -156,7 +154,7 @@ var buildIt = async (entryPoint, packageJSON) => {
156
154
  bundle: true,
157
155
  platform: "node",
158
156
  target: "node12",
159
- outfile: _path2.default.join(process.cwd(), "dist", "index.js"),
157
+ outfile: outInfo.outfile ? _path2.default.join(process.cwd(), "dist", `${outInfo.outfile}.js`) : _path2.default.join(process.cwd(), "dist", "index.js"),
160
158
  external: external.filter((item) => !packageJSON.buildConfig.entryPoints[0].bundle.includes(item))
161
159
  });
162
160
  await _esbuild.build.call(void 0, {
@@ -165,7 +163,7 @@ var buildIt = async (entryPoint, packageJSON) => {
165
163
  platform: "node",
166
164
  target: "es2020",
167
165
  format: "esm",
168
- outfile: _path2.default.join(process.cwd(), "dist", "index.mjs"),
166
+ outfile: outInfo.outfile ? _path2.default.join(process.cwd(), "dist", `${outInfo.outfile}.mjs`) : _path2.default.join(process.cwd(), "dist", "index.mjs"),
169
167
  external
170
168
  });
171
169
  } else if (["@tinacms/mdx"].includes(packageJSON.name)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/scripts",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",
@@ -20,7 +20,6 @@
20
20
  "@tailwindcss/container-queries": "^0.1.0",
21
21
  "@tailwindcss/line-clamp": "^0.3.1",
22
22
  "@tailwindcss/typography": "^0.5.0",
23
- "@types/inquirer": "^6.5.0",
24
23
  "chalk": "^4.1.1",
25
24
  "chokidar": "^3.5.2",
26
25
  "commander": "^7.2.0",
@@ -41,7 +40,7 @@
41
40
  },
42
41
  "scripts": {
43
42
  "build:all": "bin/tina-build build:all",
44
- "watch": "bin/tina-build watch",
43
+ "watch": "node bin/tina-build watch",
45
44
  "build": "yarn tsup src/jest-runner.ts src/css-transform.ts src/index.ts --format cjs"
46
45
  }
47
46
  }