Skip to content

Commit

Permalink
fix: Update eslint-plugin-query build config (#5601)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins authored Jun 18, 2023
1 parent 0c93fde commit 0e54f0a
Show file tree
Hide file tree
Showing 5 changed files with 260 additions and 31 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"semver": "^7.5.1",
"solid-js": "^1.6.13",
"stream-to-array": "^2.3.0",
"tsup": "^7.0.0",
"type-fest": "^3.11.0",
"typescript": "^5.0.4",
"vitest": "^0.27.1",
Expand Down
25 changes: 6 additions & 19 deletions packages/eslint-plugin-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,32 +31,19 @@
"test:lib": "vitest run --coverage",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"build": "tsup --minify --dts"
"build": "pnpm build:tsup && pnpm build:types",
"build:tsup": "tsup",
"build:types": "tsc --emitDeclarationOnly"
},
"files": [
"build"
"build",
"src"
],
"tsup": {
"entry": [
"src/index.ts"
],
"external": [
"eslint"
],
"format": [
"cjs",
"esm"
],
"clean": true,
"bundle": true,
"outDir": "build/lib"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.54.0",
"@typescript-eslint/parser": "^5.54.0",
"@typescript-eslint/utils": "^5.54.0",
"eslint": "^8.34.0",
"tsup": "^6.7.0"
"eslint": "^8.34.0"
},
"peerDependencies": {
"eslint": "^8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-query/tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"compilerOptions": {
"noEmit": true
},
"include": ["**/*.ts", "**/*.tsx", ".eslintrc.cjs"]
"include": ["**/*.ts", "**/*.tsx", ".eslintrc.cjs", "tsup.config.js"]
}
13 changes: 13 additions & 0 deletions packages/eslint-plugin-query/tsup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// @ts-check

import { defineConfig } from 'tsup'

export default defineConfig({
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
target: ['es2020', 'node16'],
outDir: 'build/lib',
external: [/eslint/],
sourcemap: true,
clean: true,
})
Loading

0 comments on commit 0e54f0a

Please sign in to comment.