diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..3316541 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,10 @@ +[build.environment] + NETLIFY_USE_PNPM = "true" + NODE_VERSION = "16" + +[build] + publish = "docs/.vitepress/dist" + command = "pnpm install && pnpm -w run deploy" + +[functions] + node_bundler = "esbuild" diff --git a/package.json b/package.json index 0733584..63c1689 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "typecheck": "tsc --noEmit --skipLibCheck", "dev": "vite playground", "play": "vite playground", + "build:play": "vite build playground", "bump": "bumpp package.json packages/*/package.json --commit --push --tag", "pub": "pnpm build && pnpm -r publish --access public --no-git-checks --registry https://registry.npmjs.org/", "preinstall": "npx only-allow pnpm", @@ -32,7 +33,8 @@ "up": "taze -r major", "regit": "git fetch --all && git reset --hard origin/main && git pull && git remote prune origin", "docs": "pnpm -C docs dev", - "build:docs": "pnpm -C docs build" + "build:docs": "pnpm -C docs build", + "deploy": "pnpm build && pnpm build:docs" }, "devDependencies": { "@curev/eslint-config": "^0.2.1",