Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 87 additions & 8 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,15 @@
"madge": "5.0.1",
"mailgun.js": "3.5.9",
"nyc": "15.1.0",
"semantic-release": "21.0.2"
"semantic-release": "21.0.2",
"typescript": "^5.2.2"
},
"engines": {
"node": ">=12"
},
"scripts": {
"build:watch": "babel src --out-dir lib --source-maps --watch",
"build": "babel src --out-dir lib --source-maps",
"build": "babel src --out-dir lib --source-maps && tsc",
"lint": "eslint '{src,spec,demo}/**/*.js' 'release.config.js'",
"lint:fix": "eslint '{src,spec,demo}/**/*.js' --fix",
"madge": "node_modules/.bin/madge ./src $npm_config_arg",
Expand Down
23 changes: 23 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
// Change this to match your project
"include": [
"src/**/*"
],
"compilerOptions": {
// Tells TypeScript to read JS files, as
// normally they are ignored as source files
"allowJs": true,
// Generate d.ts files
"declaration": true,
// This compiler run should
// only output d.ts files
"emitDeclarationOnly": true,
// Types should go into this directory.
// Removing this would place the .d.ts files
// next to the .js files
"outDir": "lib",
// go to js file when using IDE functions like
// "Go to Definition" in VSCode
"declarationMap": true
}
}