Skip to content

Commit 2d13171

Browse files
authored
Merge pull request #86 from ember-cli/nvp/glint-v2
Update to stable Glint
2 parents 4734db4 + 7b9e131 commit 2d13171

4 files changed

Lines changed: 14 additions & 9 deletions

File tree

files/package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"lint:js": "eslint . --cache",
2424
"lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern",
2525
"lint:js:fix": "eslint . --fix",<% if (typescript) { %>
26-
"lint:types": "glint",<% } %>
26+
"lint:types": "ember-tsc --noEmit",<% } %>
2727
"start": "vite dev",
2828
"test": "vite build --mode=development --out-dir dist-tests && testem --file testem.cjs ci --port 0",
2929
"prepack": "rollup --config"
@@ -48,11 +48,9 @@
4848
"@embroider/vite": "^1.1.5",
4949
"@eslint/js": "^9.17.0",
5050
"@glimmer/component": "^2.0.0",<% if (typescript) { %>
51-
"@glint/core": "^2.0.0-alpha.2",
52-
"@glint/environment-ember-loose": "^2.0.0-alpha.2",
53-
"@glint/environment-ember-template-imports": "^2.0.0-alpha.2",
54-
"@glint/template": "^1.6.0-alpha.1",
55-
"@glint/tsserver-plugin": "^2.0.0-alpha.2",<% } %>
51+
"@glint/ember-tsc": "^1.0.0",
52+
"@glint/template": "^1.6.0",
53+
"@glint/tsserver-plugin": "^2.0.0",<% } %>
5654
"@rollup/plugin-babel": "^6.0.4",<% if (typescript) { %>
5755
"@types/qunit": "^2.19.12",<% } %>
5856
"babel-plugin-ember-template-compilation": "^2.2.5",

files/rollup.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ export default {
6363
// Emit .d.ts declaration files
6464
addon.declarations(
6565
'declarations',
66-
`npx glint --declaration --project ${tsConfig}`,
66+
<% if (pnpm) { %>`pnpm ember-tsc --declaration --project ${tsConfig}`,<% } else if (npm)
67+
{ %>`npm exec ember-tsc -- --declaration --project ${tsConfig}`,<% } else
68+
{ %>`npx @glint/ember-tsc -- --declaration --project ${tsConfig}`,<% } %>
6769
),<% } %>
6870

6971
// addons are allowed to contain imports of .css files, which we want rollup

files/tsconfig.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
"include": ["src/**/*", "tests/**/*", "unpublished-development-types/**/*"],
1212
"compilerOptions": {
1313
"rootDir": ".",
14-
"types": ["ember-source/types", "vite/client", "@embroider/core/virtual"]
14+
"types": [
15+
"ember-source/types",
16+
"vite/client",
17+
"@embroider/core/virtual",
18+
"@glint/ember-tsc/types"
19+
]
1520
}
1621
}

files/tsconfig.publish.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
*/
2626
"rootDir": "./src",
2727

28-
"types": ["ember-source/types"]
28+
"types": ["ember-source/types", "@glint/ember-tsc/types"]
2929
}
3030
}

0 commit comments

Comments
 (0)