Skip to content

Commit

Permalink
refactor: hide rollup output in dist
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Sep 14, 2023
1 parent 43e0a66 commit bc99152
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
coverage/
dist/
exe/
rdme-rollup.cjs
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ coverage/
dist/
exe/
node_modules/
rdme-rollup.cjs
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ CHANGELOG.md
coverage/
dist/
exe/
rdme-rollup.cjs
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
},
"scripts": {
"build": "tsc",
"build:exe": "npm run build && rollup -c && pkg rdme-rollup.cjs --target host --output exe/rdme --debug",
"build:exe": "npm run build && rollup -c && pkg dist/rollup-output.cjs --target host --output exe/rdme --debug",
"debug": "ts-node src/cli.ts",
"lint": "alex . && knip && npm run lint:ts && npm run prettier && npm run schemas:check",
"lint:ts": "eslint . --ext .js,.ts",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { defineConfig } from 'rollup';

export default defineConfig({
input: 'bin/rdme.js',
output: { file: 'rdme-rollup.cjs', format: 'cjs', inlineDynamicImports: true },
output: { file: 'dist/rollup-output.cjs', format: 'cjs', inlineDynamicImports: true },
plugins: [
commonjs(),
json(),
Expand Down

0 comments on commit bc99152

Please sign in to comment.