@tinacms/scripts 1.1.0 → 1.1.1
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 +6 -5
- package/package.json +3 -5
package/dist/index.js
CHANGED
|
@@ -177,6 +177,7 @@ var config = (cwd = "") => {
|
|
|
177
177
|
3: "12px",
|
|
178
178
|
3.5: "14px",
|
|
179
179
|
4: "16px",
|
|
180
|
+
4.5: "18px",
|
|
180
181
|
5: "20px",
|
|
181
182
|
6: "24px",
|
|
182
183
|
7: "28px",
|
|
@@ -426,7 +427,7 @@ var buildIt = async (entryPoint, packageJSON) => {
|
|
|
426
427
|
platform: "node",
|
|
427
428
|
target: "es2020",
|
|
428
429
|
format: "esm",
|
|
429
|
-
outfile: _path2.default.join(process.cwd(), "dist", "index.
|
|
430
|
+
outfile: _path2.default.join(process.cwd(), "dist", "index.mjs"),
|
|
430
431
|
external
|
|
431
432
|
});
|
|
432
433
|
} else if (["@tinacms/mdx"].includes(packageJSON.name)) {
|
|
@@ -446,7 +447,7 @@ var buildIt = async (entryPoint, packageJSON) => {
|
|
|
446
447
|
platform: "node",
|
|
447
448
|
target: "es2020",
|
|
448
449
|
format: "esm",
|
|
449
|
-
outfile: _path2.default.join(process.cwd(), "dist", "index.
|
|
450
|
+
outfile: _path2.default.join(process.cwd(), "dist", "index.mjs"),
|
|
450
451
|
external: Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2))
|
|
451
452
|
});
|
|
452
453
|
await _esbuild.build.call(void 0, {
|
|
@@ -455,7 +456,7 @@ var buildIt = async (entryPoint, packageJSON) => {
|
|
|
455
456
|
platform: "browser",
|
|
456
457
|
target: "es2020",
|
|
457
458
|
format: "esm",
|
|
458
|
-
outfile: _path2.default.join(process.cwd(), "dist", "index.browser.
|
|
459
|
+
outfile: _path2.default.join(process.cwd(), "dist", "index.browser.mjs"),
|
|
459
460
|
external: Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2))
|
|
460
461
|
});
|
|
461
462
|
} else {
|
|
@@ -477,7 +478,7 @@ var buildIt = async (entryPoint, packageJSON) => {
|
|
|
477
478
|
{
|
|
478
479
|
name: "vite-plugin-tina",
|
|
479
480
|
config: (_, env) => {
|
|
480
|
-
|
|
481
|
+
const plugins = [];
|
|
481
482
|
const tw = _tailwindcss2.default.call(void 0, config(process.cwd()));
|
|
482
483
|
plugins.push(_nesting2.default);
|
|
483
484
|
plugins.push(_postcssnested2.default);
|
|
@@ -499,7 +500,7 @@ var buildIt = async (entryPoint, packageJSON) => {
|
|
|
499
500
|
entry: _path2.default.resolve(process.cwd(), entry),
|
|
500
501
|
name: packageJSON.name,
|
|
501
502
|
fileName: (format) => {
|
|
502
|
-
return format === "umd" ? `${outInfo.outfile}.js` : `${outInfo.outfile}.
|
|
503
|
+
return format === "umd" ? `${outInfo.outfile}.js` : `${outInfo.outfile}.mjs`;
|
|
503
504
|
}
|
|
504
505
|
},
|
|
505
506
|
outDir: outInfo.outdir,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/scripts",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -25,12 +25,11 @@
|
|
|
25
25
|
"chokidar": "^3.5.2",
|
|
26
26
|
"commander": "^7.2.0",
|
|
27
27
|
"esbuild": "^0.15.5",
|
|
28
|
-
"esbuild-jest": "^0.5.0",
|
|
29
28
|
"execa": "^5.1.1",
|
|
30
29
|
"express": "^4.17.1",
|
|
31
30
|
"fs-extra": "^9.0.1",
|
|
32
31
|
"identity-obj-proxy": "^3.0.0",
|
|
33
|
-
"jest": "^
|
|
32
|
+
"jest": "^29.5.0",
|
|
34
33
|
"meow": "^10.0.1",
|
|
35
34
|
"normalize-path": "^3.0.0",
|
|
36
35
|
"postcss": "^8.4.5",
|
|
@@ -38,8 +37,7 @@
|
|
|
38
37
|
"tailwindcss": "^3.2.7",
|
|
39
38
|
"tsup": "^4.12.5",
|
|
40
39
|
"typescript": "^4.2.2",
|
|
41
|
-
"vite": "^
|
|
42
|
-
"vite-plugin-dts": "^0.5.3",
|
|
40
|
+
"vite": "^4.3.9",
|
|
43
41
|
"yargs": "^17.0.1"
|
|
44
42
|
},
|
|
45
43
|
"scripts": {
|