@l-comedy/core 0.1.1 → 0.1.2
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/run.js +5 -1
- package/package.json +3 -5
package/dist/run.js
CHANGED
|
@@ -643,7 +643,7 @@ function runTsup(options) {
|
|
|
643
643
|
console.error("\u6CA1\u6709tsup\u914D\u7F6E");
|
|
644
644
|
return;
|
|
645
645
|
}
|
|
646
|
-
const outDir = userConfig.tsup.outDir || "
|
|
646
|
+
const outDir = userConfig.tsup.outDir || "lib";
|
|
647
647
|
const outPath = import_path11.default.posix.join(root, outDir);
|
|
648
648
|
import_fs_extra7.default.ensureDirSync(outPath);
|
|
649
649
|
import_fs_extra7.default.emptyDirSync(outPath);
|
|
@@ -663,6 +663,8 @@ function runTsup(options) {
|
|
|
663
663
|
clean: false,
|
|
664
664
|
minify: false,
|
|
665
665
|
bundle: false,
|
|
666
|
+
target: "node16",
|
|
667
|
+
platform: "node",
|
|
666
668
|
outExtension: () => ({ js: ".js", dts: ".d.ts" })
|
|
667
669
|
}, userConfig.tsup.options));
|
|
668
670
|
}
|
|
@@ -682,6 +684,8 @@ function runTsup(options) {
|
|
|
682
684
|
clean: false,
|
|
683
685
|
minify: false,
|
|
684
686
|
bundle: false,
|
|
687
|
+
target: "node16",
|
|
688
|
+
platform: "node",
|
|
685
689
|
outExtension: () => ({ js: ".js", dts: ".d.ts" })
|
|
686
690
|
}, userConfig.tsup.options));
|
|
687
691
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@l-comedy/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -48,12 +48,10 @@
|
|
|
48
48
|
"style-loader": "4.0.0",
|
|
49
49
|
"ts-loader": "^9.5.4"
|
|
50
50
|
},
|
|
51
|
-
"peerDependencies": {
|
|
52
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
53
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
54
|
-
},
|
|
55
51
|
"optionalDependencies": {
|
|
56
52
|
"@l-comedy/jest-preset": "^0.1.0",
|
|
53
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
54
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
57
55
|
"react-router": "^7.0.0",
|
|
58
56
|
"tsup": "^8.5.1"
|
|
59
57
|
},
|