Skip to content

Commit 0f2d4dd

Browse files
committed
build types when publishing
1 parent dfb4604 commit 0f2d4dd

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
},
3030
"scripts": {
3131
"build": "ember build --environment=production",
32+
"build:types": "glint --declaration",
3233
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
3334
"lint:css": "stylelint \"**/*.css\"",
3435
"lint:css:fix": "concurrently \"npm:lint:css -- --fix\"",
@@ -50,6 +51,7 @@
5051
"test:ember-compatibility": "ember try:each",
5152
"release": "release-it",
5253
"postinstall": "husky install",
54+
"prepack": "pnpm run build:types",
5355
"prepublishOnly": "pinst --disable",
5456
"postpublish": "pinst --enable"
5557
},

tsconfig.declarations.json

-10
This file was deleted.

tsconfig.json

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"extends": "@tsconfig/ember/tsconfig.json",
33
"compilerOptions": {
4+
// allow declarations to be emitted when despite having glint-nocheck directives.
5+
// See https://github.com/typed-ember/glint/issues/599
6+
"noEmitOnError": false,
7+
8+
"declarationDir": "declarations",
9+
410
// The combination of `baseUrl` with `paths` allows Ember's classic package
511
// layout, which is not resolvable with the Node resolution algorithm, to
612
// work with TypeScript.

0 commit comments

Comments
 (0)