@glint/ember-tsc 1.0.1 → 1.0.2-unstable.b8f9bed
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.
- package/lib/cli/run-volar-tsc.d.ts.map +1 -1
- package/lib/cli/run-volar-tsc.js +7 -5
- package/lib/cli/run-volar-tsc.js.map +1 -1
- package/package.json +12 -11
- package/src/cli/run-volar-tsc.ts +7 -6
- package/LICENSE +0 -21
|
@@ -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.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/C,MAAM,UAAU,GAAG;IACjB,IAAI,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAExB,MAAM,OAAO,GAAG;QACd,wBAAwB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;QAE1C
|
|
1
|
+
{"version":3,"file":"run-volar-tsc.js","sourceRoot":"","sources":["../../src/cli/run-volar-tsc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/C,MAAM,UAAU,GAAG;IACjB,IAAI,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAExB,MAAM,OAAO,GAAG;QACd,wBAAwB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;QAE1C,+EAA+E;QAC/E,6DAA6D;QAC7D,8HAA8H;QAC9H,EAAE;QACF,uFAAuF;QACvF,EAAE;QACF,kLAAkL;QAClL,yFAAyF;QACzF,uBAAuB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KAC1C,CAAC;IAEF,MAAM,IAAI,GAAG,GAAS,EAAE,CACtB,MAAM,CAAC,OAAO,CAAC,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.2-unstable.b8f9bed",
|
|
4
4
|
"repository": "typed-ember/glint",
|
|
5
5
|
"description": "A CLI for performing typechecking on Glimmer templates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,11 +52,17 @@
|
|
|
52
52
|
"ember-tsc": "bin/ember-tsc.js",
|
|
53
53
|
"glint-language-server": "bin/glint-language-server.js"
|
|
54
54
|
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"build": "tsc --build",
|
|
57
|
+
"dev": "tsc --watch",
|
|
58
|
+
"prepack": "pnpm build"
|
|
59
|
+
},
|
|
55
60
|
"peerDependencies": {
|
|
56
61
|
"typescript": ">=5.6.0"
|
|
57
62
|
},
|
|
58
63
|
"dependencies": {
|
|
59
64
|
"@glimmer/syntax": ">= 0.95.0",
|
|
65
|
+
"@glint/template": "1.6.2-unstable.b8f9bed",
|
|
60
66
|
"@volar/kit": "2.4.23",
|
|
61
67
|
"@volar/language-core": "2.4.23",
|
|
62
68
|
"@volar/language-server": "2.4.23",
|
|
@@ -75,11 +81,11 @@
|
|
|
75
81
|
"vscode-languageserver-protocol": "^3.17.5",
|
|
76
82
|
"vscode-languageserver-textdocument": "^1.0.5",
|
|
77
83
|
"vscode-uri": "^3.0.8",
|
|
78
|
-
"yargs": "^17.5.1"
|
|
79
|
-
"@glint/template": "1.6.1"
|
|
84
|
+
"yargs": "^17.5.1"
|
|
80
85
|
},
|
|
81
86
|
"devDependencies": {
|
|
82
87
|
"@glimmer/component": "^2.0.0",
|
|
88
|
+
"@glint/type-test": "2.0.1-unstable.b8f9bed",
|
|
83
89
|
"@types/common-tags": "^1.8.0",
|
|
84
90
|
"@types/node": "^18.11.5",
|
|
85
91
|
"@types/semver": "^7.3.13",
|
|
@@ -89,16 +95,11 @@
|
|
|
89
95
|
"@vitest/ui": "~1.0.0",
|
|
90
96
|
"common-tags": "^1.8.0",
|
|
91
97
|
"execa": "^4.0.1",
|
|
98
|
+
"glint-monorepo-test-utils": "workspace:*",
|
|
92
99
|
"strip-ansi": "^6.0.0",
|
|
93
|
-
"typescript": ">=5.6.0"
|
|
94
|
-
"glint-monorepo-test-utils": "0.0.0",
|
|
95
|
-
"@glint/type-test": "2.0.0"
|
|
100
|
+
"typescript": ">=5.6.0"
|
|
96
101
|
},
|
|
97
102
|
"publishConfig": {
|
|
98
103
|
"access": "public"
|
|
99
|
-
},
|
|
100
|
-
"scripts": {
|
|
101
|
-
"build": "tsc --build",
|
|
102
|
-
"dev": "tsc --watch"
|
|
103
104
|
}
|
|
104
|
-
}
|
|
105
|
+
}
|
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 =>
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 The Ember TypeScript team and contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|