Skip to content

Commit

Permalink
Rename scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardocavazza committed Jan 30, 2024
1 parent 71d71c6 commit 281c0d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: yarn install

- name: Run build pages
run: yarn example:build
run: yarn pages:build

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
}
},
"scripts": {
"dev": "vite",
"build": "rimraf 'dist' 'types' && yarn types && yarn build:esm && yarn build:node && yarn build:cjs",
"build:esm": "esbuild src/index.ts --outfile=dist/synapse.js --format=esm --bundle --packages=external --sourcemap --platform=browser",
"build:node": "esbuild src/index.ts --outfile=dist/synapse.node.js --format=esm --bundle --packages=external --sourcemap --platform=node",
Expand All @@ -26,8 +27,7 @@
"test:browser": "vitest run --config vitest.browser.ts",
"test:node": "vitest run --config vitest.node.ts",
"lint": "prettier --check . && eslint src test",
"example:serve": "vite",
"example:build": "vite build",
"pages:build": "vite build",
"prepack": "yarn build && publint"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vite';

export default defineConfig({
base: 'synapse',
base: '/synapse',
build: {
outDir: 'public',
},
Expand Down

0 comments on commit 281c0d8

Please sign in to comment.