Skip to content

Commit

Permalink
fix: Remove vite as dependency to read the thresholds to allow a stan…
Browse files Browse the repository at this point in the history
…dalone build (#4)
  • Loading branch information
davelosert authored Jun 17, 2022
1 parent e203ad5 commit 876bb01
Show file tree
Hide file tree
Showing 6 changed files with 133 additions and 44 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
run: npm run build
- name: 'Test'
run: npm run test:coverage
# Remove node_modules to see if this action runs entirely compiled
- name: 'Remove Node Modules'
run: rm -rf node_modules
- name: 'Use this action'
# run step also on failure of the previous step
if: always()
Expand Down
10 changes: 2 additions & 8 deletions esbuild.cjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
const { build } = require('esbuild');

build({
bundle: true,
minify: true,
sourcemap: 'external',
sourcemap: true,
platform: 'node',
entryPoints: ['src/index.ts'],
outfile: 'dist/index.js',
target: 'node16',
external: [
'esbuild',
'vite/dist/client/client.mjs',
'rollup',
'fsevents',
'vite/dist/client/env.mjs'
]
}).catch(() => process.exit(1));
Loading

0 comments on commit 876bb01

Please sign in to comment.