Skip to content

Commit

Permalink
refactor: file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Nov 4, 2024
1 parent ffa74f9 commit e84d879
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
1 change: 0 additions & 1 deletion maintenance/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"compileOnSave": true,
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
// "noImplicitAny": true,
"rootDir": "../",
"newLine": "lf"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../tsconfig.base.json",
"include": ["*.ts"]
"include": ["*.ts", "run.cts"]
}
2 changes: 1 addition & 1 deletion tsconfig.all.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
// This is used for linting and other maintenance tasks
{
"extends": "./tsconfig.base.json",
"include": ["**/*.ts"],
"include": ["**/*.ts", "**/*.cts", "**/*.mts"],
"exclude": ["**/build/**", "**/node_modules/**"]
}
6 changes: 5 additions & 1 deletion tsconfig.docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@
"compilerOptions": {
"customConditions": ["@@dev"]
},
"include": ["packages/**/src/**/*.ts"]
"include": [
"packages/**/src/**/*.ts",
"packages/**/src/**/*.cts",
"packages/**/src/**/*.mts"
]
}
12 changes: 6 additions & 6 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"inputs": [
// https://github.com/vercel/turborepo/issues/1407
":!:build/",
"**/*.{ts,json}",
"**/*.{ts,cts,mts,json}",
// The style based linting tasks depend on the corresponding configuration in the repo root
"../../eslint.config.mjs",
"../../tsconfig.all.json"
Expand All @@ -59,12 +59,12 @@
"inputs": [
// https://github.com/vercel/turborepo/issues/1407
":!:build/",
"**/*.{ts,json}",
"**/*.{ts,cts,mts,json}",
// The style based linting tasks depend on the corresponding configuration in the repo root
"../../eslint.config.mjs",
"../../tsconfig.all.json"
],
"outputs": ["**/*.{ts,json}"]
"outputs": ["**/*.{ts,cts,mts,json}"]
},

"lint:zwave": {
Expand All @@ -73,22 +73,22 @@
},
"@zwave-js/config#lint:zwave": {
"inputs": [
"**/*.ts",
"**/*.{ts,cts,mts}",
"config/**/*.json",
"config/eslint.config.mjs"
]
},

"extract-api": {
"dependsOn": ["//#build:turbo"],
"inputs": ["src/**/*.ts", "build/**"],
"inputs": ["src/**/*.{ts,cts,mts}", "build/**"],
"cache": false
// "outputs": [".tmp/api.md", "api.md"]
},

"test:ts": {
// "dependsOn": ["//#build:turbo"],
"inputs": ["src/**/*.ts", "vitest.config.mjs"]
"inputs": ["src/**/*.{ts,cts,mts}", "vitest.config.mjs"]
// TODO: consider snapshot files
}
},
Expand Down

0 comments on commit e84d879

Please sign in to comment.