Skip to content

Commit e803d5d

Browse files
authored
Merge pull request #9 from nathanielw/fix/publish-types
Generate and include TypeScript types in published build
2 parents 76875b8 + 46b62fc commit e803d5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"author": "Chris Hewell Garrett",
1111
"main": "commonjs/index.js",
1212
"module": "addon/index.js",
13+
"types": "commonjs/index.d.ts",
1314
"files": [
1415
"addon/**/*",
1516
"ember-addon-main.js"
@@ -19,7 +20,7 @@
1920
"test": "tests"
2021
},
2122
"scripts": {
22-
"build:ts": "tsc && tsc --outDir commonjs --module CommonJS",
23+
"build:ts": "tsc && tsc --declaration --outDir commonjs --module CommonJS",
2324
"build": "ember build --environment=production",
2425
"lint:hbs": "ember-template-lint .",
2526
"lint:js": "eslint .",

0 commit comments

Comments
 (0)