Skip to content

Commit

Permalink
Merge pull request #125 from tri-star/feature/add-type-support
Browse files Browse the repository at this point in the history
Automatically generate type definition files during npm run build
  • Loading branch information
grimmdude committed Sep 28, 2023
2 parents e96e8c4 + b0dd837 commit 6caabc7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 115 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
npm-debug.log
node_modules
build
browser/types
index.html
index.js
yarn.lock
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "3.1.0",
"description": "A library providing an API for generating MIDI files.",
"main": "build/index.js",
"types": "types.d.ts",
"types": "build/types/main.d.ts",
"dependencies": {
"@tonaljs/midi": "^4.9.0"
},
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"compilerOptions": {
"lib": ["esnext", "dom"]
"lib": ["esnext", "dom"],
"declaration": true,
"declarationDir": "./types"
}
}
113 changes: 0 additions & 113 deletions types.d.ts

This file was deleted.

0 comments on commit 6caabc7

Please sign in to comment.