diff options
| author | netop://ウィビ <paul@webb.page> | 2026-04-26 20:51:04 -0700 |
|---|---|---|
| committer | netop://ウィビ <paul@webb.page> | 2026-04-26 20:51:04 -0700 |
| commit | 07d39a1a3a09739bbc3d27a31829063f1e0a5e24 (patch) | |
| tree | ac5a6e2878da4546dd71eda1ba720cb798bb0d26 /package.json | |
| parent | 938496228e9553c90aa81ee993c0d760a7dd6c26 (diff) | |
| download | graphiql-07d39a1a3a09739bbc3d27a31829063f1e0a5e24.tar.gz graphiql-07d39a1a3a09739bbc3d27a31829063f1e0a5e24.zip | |
adds standalone version for CDN ease
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/package.json b/package.json index 44edf12..604ed72 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,9 @@ "types": "./dist/components/Splitter.svelte.d.ts", "svelte": "./dist/components/Splitter.svelte", "default": "./dist/components/Splitter.svelte" - } + }, + "./standalone": "./dist/standalone.js", + "./standalone.css": "./dist/standalone.css" }, "files": ["dist"], "license": "MIT", @@ -55,9 +57,10 @@ }, "scripts": { "build": "vite build", + "build:standalone": "vite build --config vite.standalone.config.ts", "check": "svelte-check --tsconfig tsconfig.json", "dev": "vite", - "package": "svelte-package --input source/library --output dist", + "package": "svelte-package --input source/library --output dist && bun run build:standalone", "prepublishOnly": "bun run package", "preview": "vite preview", "publish": "bun run package && bun publish", @@ -65,5 +68,5 @@ "update": "updates --update" }, "type": "module", - "version": "0.2.0" + "version": "0.3.0" } |