Skip to content

Commit

Permalink
adds dev tsconfig and sets index.ts filepath in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
lcflight committed Feb 28, 2024
1 parent 52fe956 commit 84021be
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "tsconfig.json"
"project": ["tsconfig.json", "tsconfig.dev.json"]
},
"plugins": ["@typescript-eslint"],
"rules": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "baserow-sdk",
"version": "1.0.0",
"description": "",
"main": "dist/index.js",
"main": "dist/src/index.js",
"type": "module",
"packageManager": "[email protected]",
"files": [
Expand Down
8 changes: 8 additions & 0 deletions tsconfig.dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": true
},
"include": ["src/**/*.ts", "vitest.config.ts", "vitest.setup.ts"],
"exclude": ["dist"]
}
9 changes: 8 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@
"declaration": true,
"outDir": "./dist",
"declarationDir": "./dist",
"rootDir": ".",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
},
"exclude": [
"dist",
"**/*.spec.ts",
"vitest.config.ts",
"vitest.setup.ts"
]
}

0 comments on commit 84021be

Please sign in to comment.