Skip to content

Commit

Permalink
Properly exclude tests from dist
Browse files Browse the repository at this point in the history
  • Loading branch information
guyca committed Jun 15, 2024
1 parent 74d41e4 commit 51c3fb9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-plugin-obsidian/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "dist/index.js",
"version": "2.5.0",
"scripts": {
"build": "npx tsc",
"build": "npx tsc --project tsconfig.prod.json",
"test": "npx jest",
"lint": "eslint rules --ignore-pattern '*.d.ts' --ext .ts,.tsx,.js"
},
Expand Down
1 change: 0 additions & 1 deletion packages/eslint-plugin-obsidian/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
],
"exclude": [
"node_modules",
"tests/**/*",
"dist"
],
"compilerOptions": {
Expand Down
7 changes: 7 additions & 0 deletions packages/eslint-plugin-obsidian/tsconfig.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"exclude": [
"**/*.test.*",
"test"
]
}

0 comments on commit 51c3fb9

Please sign in to comment.