@glint/ember-tsc 1.0.2-unstable.c706cf7 → 1.0.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
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.
@@ -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,CA4B1B"}
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"}
@@ -7,13 +7,15 @@ export function run() {
7
7
  let cwd = process.cwd();
8
8
  const options = {
9
9
  extraSupportedExtensions: ['.gjs', '.gts'],
10
- extraExtensionsToRemove: [],
11
- // With the above configuration, `{basename}.gts` will produce `{basename}.gts.d.ts`.
12
- // If we would prefer `{basename}.d.ts`, we could use the following configuration instead:
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
- // extraExtensionsToRemove: ['.gts', '.gjs'],
14
+ // Please refer to https://github.com/typed-ember/glint/issues/988 for more information
15
15
  //
16
- // See discussion here: https://github.com/typed-ember/glint/issues/628
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,uBAAuB,EAAE,EAAE;QAE3B,qFAAqF;QACrF,0FAA0F;QAC1F,EAAE;QACF,6CAA6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M,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.2-unstable.c706cf7",
3
+ "version": "1.0.2",
4
4
  "repository": "typed-ember/glint",
5
5
  "description": "A CLI for performing typechecking on Glimmer templates",
6
6
  "license": "MIT",
@@ -52,17 +52,11 @@
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
- },
60
55
  "peerDependencies": {
61
56
  "typescript": ">=5.6.0"
62
57
  },
63
58
  "dependencies": {
64
59
  "@glimmer/syntax": ">= 0.95.0",
65
- "@glint/template": "1.6.2-unstable.c706cf7",
66
60
  "@volar/kit": "2.4.23",
67
61
  "@volar/language-core": "2.4.23",
68
62
  "@volar/language-server": "2.4.23",
@@ -81,11 +75,11 @@
81
75
  "vscode-languageserver-protocol": "^3.17.5",
82
76
  "vscode-languageserver-textdocument": "^1.0.5",
83
77
  "vscode-uri": "^3.0.8",
84
- "yargs": "^17.5.1"
78
+ "yargs": "^17.5.1",
79
+ "@glint/template": "1.6.1"
85
80
  },
86
81
  "devDependencies": {
87
82
  "@glimmer/component": "^2.0.0",
88
- "@glint/type-test": "2.0.1-unstable.c706cf7",
89
83
  "@types/common-tags": "^1.8.0",
90
84
  "@types/node": "^18.11.5",
91
85
  "@types/semver": "^7.3.13",
@@ -95,11 +89,16 @@
95
89
  "@vitest/ui": "~1.0.0",
96
90
  "common-tags": "^1.8.0",
97
91
  "execa": "^4.0.1",
98
- "glint-monorepo-test-utils": "workspace:*",
99
92
  "strip-ansi": "^6.0.0",
100
- "typescript": ">=5.6.0"
93
+ "typescript": ">=5.6.0",
94
+ "@glint/type-test": "2.0.0",
95
+ "glint-monorepo-test-utils": "0.0.0"
101
96
  },
102
97
  "publishConfig": {
103
98
  "access": "public"
99
+ },
100
+ "scripts": {
101
+ "build": "tsc --build",
102
+ "dev": "tsc --watch"
104
103
  }
105
- }
104
+ }
@@ -11,14 +11,15 @@ export function run(): void {
11
11
  const options = {
12
12
  extraSupportedExtensions: ['.gjs', '.gts'],
13
13
 
14
- extraExtensionsToRemove: [],
15
-
16
- // With the above configuration, `{basename}.gts` will produce `{basename}.gts.d.ts`.
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
- // extraExtensionsToRemove: ['.gts', '.gjs'],
18
+ // Please refer to https://github.com/typed-ember/glint/issues/988 for more information
20
19
  //
21
- // See discussion here: https://github.com/typed-ember/glint/issues/628
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 =>