Clarify site build and deploy scripts

This commit is contained in:
2026-08-13 19:53:38 +09:00
parent 62aa81b91c
commit 8198b615a8
3 changed files with 13 additions and 9 deletions
+5 -5
View File
@@ -6,14 +6,14 @@
"scripts": {
"dev": "astro dev --host 0.0.0.0",
"build": "astro build",
"build:all": "npm run build:wasm && npm run build",
"build:wasm": "npm run build:wasm:runtime && npm run build:wasm:formatter",
"build:wasm:runtime": "wasm-pack build ../../crates/decodal-wasm --target web --out-dir ../../packages/decodal-wasm --release && node scripts/prepare-wasm-package.mjs",
"build:wasm:formatter": "wasm-pack build ../../crates/decodal-language-tools --target web --out-dir ../../packages/decodal-codemirror/wasm --release && node scripts/prepare-codemirror-wasm.mjs",
"test": "node --test src/scripts/*.test.mjs",
"preview": "astro preview --host 0.0.0.0",
"build:runtime": "wasm-pack build ../../crates/decodal-wasm --target web --out-dir ../../packages/decodal-wasm --release && node scripts/prepare-wasm-package.mjs",
"build:tools": "wasm-pack build ../../crates/decodal-language-tools --target web --out-dir ../../packages/decodal-codemirror/wasm --release && node scripts/prepare-codemirror-wasm.mjs",
"build:wasm": "npm run build:runtime && npm run build:tools",
"build:packages": "npm run build:wasm",
"deploy": "npm run build && node scripts/deploy-pages.mjs",
"deploy:wasm": "npm run build:wasm && npm run deploy"
"deploy:all": "npm run build:wasm && npm run deploy"
},
"dependencies": {
"@astrojs/check": "^0.9.4",
@@ -179,7 +179,9 @@ writeFileSync(
{
name: '@hare/decodal-wasm',
version: '0.1.4',
license: 'MIT OR Apache-2.0',
// JSR's publisher currently accepts a single recognized identifier.
// npm package metadata remains dual-licensed and both files are included.
license: 'MIT',
exports: './mod.ts',
publish: {
include: [