From bc991527d9dc8199a4a6c32cc2560f5bbc7f3d7c Mon Sep 17 00:00:00 2001 From: Kanad Gupta Date: Thu, 14 Sep 2023 12:22:19 -0500 Subject: [PATCH] refactor: hide rollup output in dist --- .eslintignore | 1 - .gitignore | 1 - .prettierignore | 1 - package.json | 2 +- rollup.config.js | 2 +- 5 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.eslintignore b/.eslintignore index 419a8bfd3..9c851ddae 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,3 @@ coverage/ dist/ exe/ -rdme-rollup.cjs diff --git a/.gitignore b/.gitignore index 9cac22b9c..13d509072 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,3 @@ coverage/ dist/ exe/ node_modules/ -rdme-rollup.cjs diff --git a/.prettierignore b/.prettierignore index 8e67ce0e3..2efc2ac9e 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,4 +3,3 @@ CHANGELOG.md coverage/ dist/ exe/ -rdme-rollup.cjs diff --git a/package.json b/package.json index 206689ba5..7cf96b855 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/rollup.config.js b/rollup.config.js index 4cd386d4f..1d5e82612 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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(),