Skip to content

Commit

Permalink
Improve lint and rollup configs
Browse files Browse the repository at this point in the history
  • Loading branch information
RickDT committed Oct 4, 2023
1 parent 0d3b4ec commit 34ba6d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "ParallelMarkets.com JavaScript SDK loading utility",
"scripts": {
"build": "pnpm --parallel --filter '@parallelmarkets/*' build",
"lint": "NODE_ENV=test eslint examples/*/src packages/*/src && prettier -l packages/*/src examples/*/src",
"lint": "eslint examples/*/src packages/*/src && prettier -l packages/*/src examples/*/src",
"test": "NODE_ENV=test jest"
},
"keywords": [
Expand Down
2 changes: 2 additions & 0 deletions packages/react/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const config = [
{
input: 'src/index.tsx',
output: { file: pkg.main, format: 'cjs', generatedCode: 'es5' },
external: ['react'],
plugins: [
image(),
// run TS first
Expand All @@ -23,6 +24,7 @@ const config = [
{
input: 'src/index.tsx',
output: { file: pkg.module, format: 'esm', generatedCode: 'es2015' },
external: ['react'],
plugins: [
image(),
// Run TS
Expand Down
2 changes: 1 addition & 1 deletion packages/vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
],
"scripts": {
"build": "NODE_ENV=production rollup -c",
"lint": "NODE_ENV=test eslint ./src && prettier -l ./src",
"lint": "eslint ./src && prettier -l ./src",
"test": "NODE_ENV=test jest",
"typecheck": "tsc --noEmit",
"watch": "pnpm typecheck --watch --noEmit"
Expand Down

0 comments on commit 34ba6d7

Please sign in to comment.