Skip to content

Commit

Permalink
Change tsconfig.build.json to JSONC
Browse files Browse the repository at this point in the history
To reduce the number of top-level files.

`.jsonc` file extension is actually most accurate for tsconfig file: it
allows comments regardless of a file extension.
  • Loading branch information
pocka committed Nov 25, 2024
1 parent fa8e429 commit 656a1bf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"vitest": "^2.1.5"
},
"scripts": {
"build": "tsc -p tsconfig.build.json",
"build": "tsc -p tsconfig.build.jsonc",
"test": "vitest",
"prepare": "npm run build"
}
Expand Down
9 changes: 0 additions & 9 deletions tsconfig.build.json

This file was deleted.

5 changes: 0 additions & 5 deletions tsconfig.build.json.license

This file was deleted.

13 changes: 13 additions & 0 deletions tsconfig.build.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// TypeScript config file. This one is for generating release JS files.
//
// SPDX-FileCopyrightText: 2024 Shota FUJI <pockawoooh@gmail.com>
// SPDX-License-Identifier: Apache-2.0
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "esm/es2020",
"noEmit": false,
"declaration": true
},
"include": ["./src/plugin.ts"]
}

0 comments on commit 656a1bf

Please sign in to comment.