From 1a6cea4b424ee560876f0c34b7ee7e56276f33f2 Mon Sep 17 00:00:00 2001 From: Rhys Evans Date: Wed, 24 Jul 2024 17:25:54 +0100 Subject: [PATCH] chore: lint rollup config --- package.json | 5 ++++- shared-rollup.config.js | 27 +++++++++++++-------------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 8f0dff1e..c024c511 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/shared-rollup.config.js b/shared-rollup.config.js index 8a8bf783..316d9c83 100644 --- a/shared-rollup.config.js +++ b/shared-rollup.config.js @@ -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(), + ], };