@glint/ember-tsc 1.0.2-unstable.c706cf7 → 1.0.3-unstable.8302223
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-volar-tsc.d.ts","sourceRoot":"","sources":["../../src/cli/run-volar-tsc.ts"],"names":[],"mappings":"AAOA,wBAAgB,GAAG,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"run-volar-tsc.d.ts","sourceRoot":"","sources":["../../src/cli/run-volar-tsc.ts"],"names":[],"mappings":"AAOA,wBAAgB,GAAG,IAAI,IAAI,CA6B1B"}
|
package/lib/cli/run-volar-tsc.js
CHANGED
|
@@ -7,13 +7,15 @@ export function run() {
|
|
|
7
7
|
let cwd = process.cwd();
|
|
8
8
|
const options = {
|
|
9
9
|
extraSupportedExtensions: ['.gjs', '.gts'],
|
|
10
|
-
|
|
11
|
-
//
|
|
12
|
-
//
|
|
10
|
+
// With the below configuration `{basename.gts}` will produce `{basename}.d.ts`
|
|
11
|
+
// This is in line with how V2 addons build their components.
|
|
12
|
+
// At build time, `.gts` components are emitted as `.js` files, so that's why the corresponding declarations should be `.d.ts`
|
|
13
13
|
//
|
|
14
|
-
//
|
|
14
|
+
// Please refer to https://github.com/typed-ember/glint/issues/988 for more information
|
|
15
15
|
//
|
|
16
|
-
//
|
|
16
|
+
// Before this option, glint emitted broken declarations in which relative imports to other .gts files did not strip extensions (https://github.com/typed-ember/glint/issues/628).
|
|
17
|
+
// The declarations outputted by volar's runTsc luckily also remove extension in imports.
|
|
18
|
+
extraExtensionsToRemove: ['.gjs', '.gts'],
|
|
17
19
|
};
|
|
18
20
|
const main = () => runTsc(require.resolve('typescript/lib/tsc'), options, (ts, options) => {
|
|
19
21
|
const glintConfig = findConfig(cwd);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-volar-tsc.js","sourceRoot":"","sources":["../../src/cli/run-volar-tsc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,OAAO,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;QAEpC,IAAI,WAAW,EAAE,CAAC;YAChB,MAAM,iBAAiB,GAAG,yBAAyB,CAAC,WAAW,CAAC,CAAC;YACjE,OAAO,CAAC,iBAAiB,CAAC,CAAC;QAC7B,CAAC;aAAM,CAAC;YACN,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC,CAAC,CAAC;IACL,IAAI,EAAE,CAAC;AACT,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glint/ember-tsc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3-unstable.8302223",
|
|
4
4
|
"repository": "typed-ember/glint",
|
|
5
5
|
"description": "A CLI for performing typechecking on Glimmer templates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@glimmer/syntax": ">= 0.95.0",
|
|
65
|
-
"@glint/template": "1.6.2-unstable.
|
|
65
|
+
"@glint/template": "1.6.2-unstable.8302223",
|
|
66
66
|
"@volar/kit": "2.4.23",
|
|
67
67
|
"@volar/language-core": "2.4.23",
|
|
68
68
|
"@volar/language-server": "2.4.23",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@glimmer/component": "^2.0.0",
|
|
88
|
-
"@glint/type-test": "2.0.1-unstable.
|
|
88
|
+
"@glint/type-test": "2.0.1-unstable.8302223",
|
|
89
89
|
"@types/common-tags": "^1.8.0",
|
|
90
90
|
"@types/node": "^18.11.5",
|
|
91
91
|
"@types/semver": "^7.3.13",
|
package/src/cli/run-volar-tsc.ts
CHANGED
|
@@ -11,14 +11,15 @@ export function run(): void {
|
|
|
11
11
|
const options = {
|
|
12
12
|
extraSupportedExtensions: ['.gjs', '.gts'],
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
//
|
|
17
|
-
// If we would prefer `{basename}.d.ts`, we could use the following configuration instead:
|
|
14
|
+
// With the below configuration `{basename.gts}` will produce `{basename}.d.ts`
|
|
15
|
+
// This is in line with how V2 addons build their components.
|
|
16
|
+
// At build time, `.gts` components are emitted as `.js` files, so that's why the corresponding declarations should be `.d.ts`
|
|
18
17
|
//
|
|
19
|
-
//
|
|
18
|
+
// Please refer to https://github.com/typed-ember/glint/issues/988 for more information
|
|
20
19
|
//
|
|
21
|
-
//
|
|
20
|
+
// Before this option, glint emitted broken declarations in which relative imports to other .gts files did not strip extensions (https://github.com/typed-ember/glint/issues/628).
|
|
21
|
+
// The declarations outputted by volar's runTsc luckily also remove extension in imports.
|
|
22
|
+
extraExtensionsToRemove: ['.gjs', '.gts'],
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
const main = (): void =>
|