Skip to content

Commit 2a2b493

Browse files
committed
Move some types to their own packages
1 parent bd60866 commit 2a2b493

File tree

137 files changed

+2164
-42
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+2164
-42
lines changed

packages/environment-ember-loose/__tests__/tsconfig.json

-7
This file was deleted.

packages/environment-ember-loose/package.json

+16-8
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,27 @@
77
"author": "Dan Freeman (https://github.com/dfreeman)",
88
"main": "-private/index.js",
99
"exports": {
10-
".": "./-private/index.js",
11-
"./registry": "./registry/index.js",
12-
"./glint-environment-definition": "./-private/environment/index.js",
13-
"./-private/dsl": "./-private/dsl/index.js"
10+
".": {
11+
"types": "./-private/index.d.ts",
12+
"default": "./-private/index.js"
13+
},
14+
"./registry": {
15+
"types": "./registry/index.d.ts",
16+
"default": "./registry/index.js"
17+
},
18+
"./glint-environment-definition": {
19+
"types": "./-private/environment/index.d.ts",
20+
"default": "./-private/environment/index.js"
21+
},
22+
"./-private/dsl": {
23+
"types": "./-private/dsl/index.d.ts",
24+
"default": "./-private/dsl/index.js"
25+
}
1426
},
1527
"keywords": [
1628
"glint-environment"
1729
],
1830
"scripts": {
19-
"test": "echo 'no tests within this project'",
20-
"test:tsc": "echo 'no standalone typecheck within this project'",
21-
"test:typecheck": "glint --project __tests__/type-tests && vitest run",
22-
"test:watch": "vitest watch",
2331
"build": "tsc --build",
2432
"prepack": "pnpm build"
2533
},

packages/template/__tests__/tsconfig.json

-7
This file was deleted.

packages/template/package.json

+5-7
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,18 @@
66
"license": "MIT",
77
"author": "Dan Freeman (https://github.com/dfreeman)",
88
"types": "-private/index.d.ts",
9-
"scripts": {
10-
"test": "echo 'no standalone tests within this project'",
11-
"test:typecheck": "tsc --project __tests__",
12-
"test:tsc": "echo 'no standalone typecheck within this project'"
9+
"exports": {
10+
".": "-private/index.d.ts",
11+
"./*": "./*.d.ts"
1312
},
1413
"files": [
1514
"README.md",
1615
"-private",
1716
"*.d.ts"
1817
],
1918
"devDependencies": {
20-
"@glimmer/component": "^1.1.2",
21-
"expect-type": "^0.15.0",
22-
"sums-up": "^2.1.0"
19+
"sums-up": "^2.1.0",
20+
"typescript": "^5.8.2"
2321
},
2422
"publishConfig": {
2523
"access": "public"

packages/template/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"extends": "../../tsconfig.compileroptions.json",
3-
"exclude": ["__tests__"]
2+
"extends": "../../tsconfig.compileroptions.json"
43
}

packages/type-test/package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@
2323
"expect-type": "^0.15.0"
2424
},
2525
"peerDependencies": {
26-
"@glint/template": "^1.4.0"
26+
"@glint/template": "workspace:^"
2727
},
2828
"devDependencies": {
29-
"@glint/template": "workspace:*"
29+
"@glint/core": "workspace:*",
30+
"@glint/environment-ember-loose": "workspace:*",
31+
"@glint/environment-ember-template-imports": "workspace:*",
32+
"@glint/template": "workspace:*",
33+
"ember-source": "^6.3.0"
3034
},
3135
"publishConfig": {
3236
"access": "public"

packages/type-test/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": "../../tsconfig.compileroptions.json",
33
"compilerOptions": {
44
"rootDir": "src",
5-
"outDir": "lib"
5+
"outDir": "lib",
6+
"types": ["ember-source/types"],
67
},
78
"include": ["src"],
89
"references": [{ "path": "../template" }]

0 commit comments

Comments
 (0)