@tinacms/scripts 1.1.3 → 1.1.5
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 +2 -4
- package/package.json +5 -20
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("
|
|
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
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/scripts",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -13,34 +13,19 @@
|
|
|
13
13
|
"tinacms-scripts": "./bin/tina-build"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@babel/core": "^7.21.0",
|
|
17
|
-
"@babel/plugin-transform-modules-commonjs": "^7.15.0",
|
|
18
16
|
"@sucrase/jest-plugin": "^2.1.1",
|
|
19
|
-
"@tailwindcss/aspect-ratio": "^0.4.0",
|
|
20
|
-
"@tailwindcss/container-queries": "^0.1.0",
|
|
21
|
-
"@tailwindcss/line-clamp": "^0.3.1",
|
|
22
|
-
"@tailwindcss/typography": "^0.5.0",
|
|
23
17
|
"chalk": "^4.1.1",
|
|
24
18
|
"chokidar": "^3.5.2",
|
|
25
19
|
"commander": "^7.2.0",
|
|
26
20
|
"esbuild": "^0.15.5",
|
|
27
|
-
"execa": "^5.1.1",
|
|
28
|
-
"express": "^4.17.1",
|
|
29
21
|
"fs-extra": "^9.0.1",
|
|
30
|
-
"identity-obj-proxy": "^3.0.0",
|
|
31
|
-
"jest": "^29.5.0",
|
|
32
|
-
"meow": "^10.0.1",
|
|
33
|
-
"normalize-path": "^3.0.0",
|
|
34
|
-
"postcss": "^8.4.5",
|
|
35
|
-
"tailwindcss": "^3.2.7",
|
|
36
22
|
"tsup": "^4.12.5",
|
|
37
|
-
"typescript": "^4.
|
|
38
|
-
"vite": "^4.3.9"
|
|
39
|
-
"yargs": "^17.0.1"
|
|
23
|
+
"typescript": "^4.6.4",
|
|
24
|
+
"vite": "^4.3.9"
|
|
40
25
|
},
|
|
41
26
|
"scripts": {
|
|
42
27
|
"build:all": "bin/tina-build build:all",
|
|
43
|
-
"watch": "bin/tina-build watch",
|
|
44
|
-
"build": "
|
|
28
|
+
"watch": "node bin/tina-build watch",
|
|
29
|
+
"build": "pnpm tsup src/jest-runner.ts src/css-transform.ts src/index.ts --format cjs"
|
|
45
30
|
}
|
|
46
31
|
}
|