Skip to content

Commit

Permalink
fix: svelte package process is not exited
Browse files Browse the repository at this point in the history
  • Loading branch information
paring-chan committed Nov 2, 2024
1 parent 55b666a commit 4f5ab67
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 9 deletions.
22 changes: 18 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@
"files": [
"dist"
],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"svelte": "./dist/index.js"
}
},
"sideEffects": [
"**/*.css",
"**/*.scss"
],
"scripts": {
"gen": "node scripts/generateGlobImports.mjs",
"check": "svelte-check --tsconfig ./tsconfig.json && tsc -p tsconfig.node.json",
Expand All @@ -29,7 +38,7 @@
"@storybook/svelte": "^8.4.1",
"@storybook/svelte-vite": "^8.4.1",
"@storybook/test": "^8.4.1",
"@sveltejs/package": "^2.3.7",
"@sveltejs/package": "^2.3.5",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@tsconfig/svelte": "^5.0.4",
"@types/js-cookie": "^3.0.6",
Expand Down Expand Up @@ -78,5 +87,10 @@
]
]
},
"packageManager": "pnpm@9.4.0+sha256.b6fd0bfda555e7e584ad7e56b30c68b01d5a04f9ee93989f4b93ca8473c49c74"
"packageManager": "pnpm@9.4.0+sha256.b6fd0bfda555e7e584ad7e56b30c68b01d5a04f9ee93989f4b93ca8473c49c74",
"pnpm": {
"patchedDependencies": {
"@sveltejs/package@2.3.5": "patches/@sveltejs__package@2.3.5.patch"
}
}
}
13 changes: 13 additions & 0 deletions patches/@sveltejs__package@2.3.5.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/cli.js b/src/cli.js
index 4833dc489359f2fba202668672f3cd8e09c427d5..69f645027c7db66eb3a539ee724c6c3fd3eceb6e 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -52,6 +52,8 @@ prog
};

await (args.watch ? packaging.watch(options) : packaging.build(options));
+
+ process.exit(0)
} catch (error) {
handle_error(/** @type {Error} */ (error));
}
15 changes: 10 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4f5ab67

Please sign in to comment.