mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-10-06 01:37:48 +08:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b3e201287 |
+1
-1
@@ -131,7 +131,7 @@
|
||||
"electron-builder": "^26.0.12",
|
||||
"esbuild": "^0.28.0",
|
||||
"eslint": "9.39.5",
|
||||
"eslint-config-next": "16.1.6",
|
||||
"eslint-config-next": "16.3.8",
|
||||
"husky": "^9.1.7",
|
||||
"jsdom": "^27.4.0",
|
||||
"lint-staged": "^16.2.7",
|
||||
|
||||
@@ -11,11 +11,9 @@ const REQUIRED = [
|
||||
"dist/preview/preview.js",
|
||||
]
|
||||
|
||||
const output = JSON.parse(
|
||||
const [pack] = JSON.parse(
|
||||
execSync("npm pack --dry-run --json", { encoding: "utf8" }),
|
||||
)
|
||||
// npm 11 prints a list, npm 12 an object keyed by package name
|
||||
const pack = Array.isArray(output) ? output[0] : Object.values(output)[0]
|
||||
const files = new Set(pack.files.map((f) => f.path))
|
||||
const missing = REQUIRED.filter((f) => !files.has(f))
|
||||
if (missing.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user