Skip to content

Commit

Permalink
chore: lint rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Jul 24, 2024
1 parent a41b3a8 commit 1a6cea4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@
},
"lint-staged": {
"**/*.js": [
"npm run lint && npm run types:check"
"npm run lint"
],
"packages/**/*.js": [
"npm run types:check"
],
"**/*.md":[
"npm run prettier"
Expand Down
27 changes: 13 additions & 14 deletions shared-rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import { writeFile, mkdir } from 'fs/promises';
export default {
input: './src/index.js',
output: {
dir: './dist',
entryFileNames: 'commonjs.js',
format: 'commonjs',
},
plugins: [
nodeResolve({ preferBuiltins: false }),
commonjs(),
// sourcemaps(),
// builtins(),
// globals(),
],
input: './src/index.js',
output: {
dir: './dist',
entryFileNames: 'commonjs.js',
format: 'commonjs',
},
plugins: [
nodeResolve({ preferBuiltins: false }),
commonjs(),
// sourcemaps(),
// builtins(),
// globals(),
],
};

0 comments on commit 1a6cea4

Please sign in to comment.