🎨 Continue using npm

This commit is contained in:
Tw93
2025-08-20 12:45:22 +08:00
parent 864db379c0
commit 1bb2522ab7
16 changed files with 597 additions and 2168 deletions

12
rollup.config.js vendored
View File

@@ -23,6 +23,18 @@ export default {
include: "bin/**",
exclude: "node_modules/**",
},
external: (id) => {
if (id === "bin/cli.ts" || id === "bin/dev.ts") return false;
if (id.startsWith(".") || path.isAbsolute(id) || id.startsWith("@/"))
return false;
return true;
},
onwarn(warning, warn) {
if (warning.code === "UNRESOLVED_IMPORT") {
return;
}
warn(warning);
},
plugins: [
json(),
typescript({