Skip to content

Commit

Permalink
chore: update tsconfig
Browse files Browse the repository at this point in the history
- consume reusable `@tsconfig/node16`
- remove nonexistent file from tarball
- remove test declarations from tarball
  • Loading branch information
boneskull committed Jul 24, 2023
1 parent 8bde0b5 commit 106bcd6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 17 deletions.
27 changes: 20 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@
"license": "Apache-2.0",
"author": "Christopher Hiller <boneskull@boneskull.com> (https://boneskull.com/)",
"main": "src/index.js",
"types": "./types/src/index.d.ts",
"types": "types/src/index.d.ts",
"bin": {
"smoker": "src/cli.js"
},
"files": [
"src",
"types",
"static.d.ts"
"types/src"
],
"scripts": {
"build": "tsc -b",
Expand Down Expand Up @@ -76,6 +75,7 @@
"devDependencies": {
"@commitlint/cli": "17.6.7",
"@commitlint/config-conventional": "17.6.7",
"@tsconfig/node16": "16.1.0",
"@types/debug": "4.1.8",
"@types/mocha": "10.0.1",
"@types/node": "18.17.0",
Expand Down
9 changes: 2 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"allowJs": true,
"checkJs": true,
"declaration": true,
"declarationMap": false,
"declarationMap": true,
"declarationDir": "types",
"emitDeclarationOnly": true,
"moduleResolution": "node",
"types": ["node", "sinon", "mocha"],
"paths": {
"midnight-smoker": ["./src/index"]
Expand Down

0 comments on commit 106bcd6

Please sign in to comment.