Skip to content

Commit

Permalink
fix(build): ensure typescript types are included in package
Browse files Browse the repository at this point in the history
  • Loading branch information
benji6 committed Sep 1, 2019
1 parent 639b9da commit 747e2b2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@
"type": "git",
"url": "https://github.com/benji6/virtual-audio-graph.git"
},
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc && rollup -c",
"build": "run-p build:*",
"build:cjs": "tsc",
"build:esm": "tsc -m es6 --outDir esm",
"docs": "tsc -p docsSrc && rollup -c docsSrc/rollup.config.js && rm -r docsSrc/esm",
"format": "prettier --write 'docs/**/*.html' 'src/**/*.ts' 'test/**/*.ts'",
"test": "run-p test:*",
Expand Down
2 changes: 1 addition & 1 deletion src/VirtualAudioNodes/AudioWorkletVirtualAudioNode.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IVirtualAudioNodeParams, Output, VirtualAudioNode } from '../types'
import { equals, find, values } from '../utils'
import { equals, values } from '../utils'
import CustomVirtualAudioNode from './CustomVirtualAudioNode'

interface IWindow {
Expand Down
12 changes: 6 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"compileOnSave": false,
"compilerOptions": {
"module": "es2015",
"declaration": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"noImplicitAny": true,
"outDir": "./esm/",
"noUnusedLocals": true,
"outDir": "dist",
"sourceMap": false,
"target": "es5"
},
"include": [
"src/**/*"
]
"include": ["src/**/*"]
}

0 comments on commit 747e2b2

Please sign in to comment.