Skip to content

Commit 77c5419

Browse files
authored
Merge pull request #779 from GraphScope/feat-neug-build
fix: update neug-query build
2 parents 5498275 + ac49ea1 commit 77c5419

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/neug-query/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"main": "lib/index.js",
66
"module": "es/index.js",
77
"types": "lib/index.d.ts",
8+
"jsdelivr": "dist/index.html",
9+
"unpkg": "dist/index.html",
810
"repository": {
911
"type": "git",
1012
"url": "https://github.com/GraphScope/portal.git"
@@ -20,11 +22,13 @@
2022
},
2123
"scripts": {
2224
"start": "father dev",
23-
"build": "father build",
25+
"build": "father build && npm run build:site:single",
26+
"build:lib": "father build",
2427
"start:site": "vite dev",
2528
"build:site": "NODE_OPTIONS='--max-old-space-size=8192' vite build",
2629
"build:site:single": "NODE_OPTIONS='--max-old-space-size=8192' vite build --mode=single",
27-
"preview": "vite preview"
30+
"preview": "vite preview",
31+
"prepublishOnly": "npm run build"
2832
},
2933
"dependencies": {
3034
"@graphscope/studio-components": "workspace:*",

0 commit comments

Comments
 (0)