Skip to content

Commit bb323bc

Browse files
authored
ref(ember): Add type definitions for Ember (#3531)
Since we aren't running 'prepublishOnly' via Lerna, Ember-cli-typescript's precompile wasn't getting called. A pre and post publish call will temporarily create the definitions for publishing and remove them afterwards. This is required since .ts files can't be included in the app folder in Ember since they get merged as-is into a project file structure.
1 parent 13eea94 commit bb323bc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"test": "lerna run --stream --concurrency 1 --sort test",
1313
"codecov": "codecov",
1414
"pack:changed": "lerna run pack --since",
15-
"postpublish": "make publish-docs"
15+
"prepublishOnly": "lerna run --stream --concurrency 1 prepublishOnly",
16+
"postpublish": "make publish-docs && lerna run --stream --concurrency 1 postpublish"
1617
},
1718
"volta": {
1819
"node": "10.18.1",

packages/ember/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
"*": ["types/*"]
2525
}
2626
},
27-
"include": ["app/**/*", "addon/**/*", "tests/**/*", "types/**/*", "test-support/**/*", "addon-test-support/**/*"]
27+
"include": ["app/**/*", "addon/**/*", "types/**/*", "addon-test-support/**/*"]
2828
}

0 commit comments

Comments
 (0)