Skip to content

Commit a98a43a

Browse files
authored
Merge 61a6d40 into 0f26c11
2 parents 0f26c11 + 61a6d40 commit a98a43a

File tree

3 files changed

+113
-10
lines changed

3 files changed

+113
-10
lines changed

package-lock.json

Lines changed: 87 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,15 @@
5050
"madge": "5.0.1",
5151
"mailgun.js": "3.5.9",
5252
"nyc": "15.1.0",
53-
"semantic-release": "21.0.2"
53+
"semantic-release": "21.0.2",
54+
"typescript": "^5.2.2"
5455
},
5556
"engines": {
5657
"node": ">=12"
5758
},
5859
"scripts": {
5960
"build:watch": "babel src --out-dir lib --source-maps --watch",
60-
"build": "babel src --out-dir lib --source-maps",
61+
"build": "babel src --out-dir lib --source-maps && tsc",
6162
"lint": "eslint '{src,spec,demo}/**/*.js' 'release.config.js'",
6263
"lint:fix": "eslint '{src,spec,demo}/**/*.js' --fix",
6364
"madge": "node_modules/.bin/madge ./src $npm_config_arg",

tsconfig.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
// Change this to match your project
3+
"include": [
4+
"src/**/*"
5+
],
6+
"compilerOptions": {
7+
// Tells TypeScript to read JS files, as
8+
// normally they are ignored as source files
9+
"allowJs": true,
10+
// Generate d.ts files
11+
"declaration": true,
12+
// This compiler run should
13+
// only output d.ts files
14+
"emitDeclarationOnly": true,
15+
// Types should go into this directory.
16+
// Removing this would place the .d.ts files
17+
// next to the .js files
18+
"outDir": "lib",
19+
// go to js file when using IDE functions like
20+
// "Go to Definition" in VSCode
21+
"declarationMap": true
22+
}
23+
}

0 commit comments

Comments
 (0)