Skip to content

Commit fc0d35d

Browse files
Merge pull request #438 from NullVoxPopuli/upgrade-addon-dev
Upgrade addon-dev, drop TS < v5
2 parents 62049b7 + a466678 commit fc0d35d

29 files changed

Lines changed: 1181 additions & 991 deletions

.github/workflows/ci.yml

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ jobs:
7777
- uses: wyvox/action@v1
7878
with:
7979
repo-token: ${{ secrets.GITHUB_TOKEN }}
80+
- run: pnpm build
81+
- run: pnpm i -f # injected deps
8082
- run: pnpm lint
8183

8284

@@ -89,6 +91,8 @@ jobs:
8991
- uses: wyvox/action@v1
9092
with:
9193
repo-token: ${{ secrets.GITHUB_TOKEN }}
94+
- run: pnpm build
95+
- run: pnpm i -f # injected deps
9296
- run: pnpm turbo test:ember --filter test-app
9397

9498
floating:
@@ -101,6 +105,8 @@ jobs:
101105
with:
102106
repo-token: ${{ secrets.GITHUB_TOKEN }}
103107
pnpm-args: --no-lockfile
108+
- run: pnpm build
109+
- run: pnpm i -f # injected deps
104110
- run: pnpm turbo test:ember --filter test-app
105111

106112
try-scenarios:
@@ -134,39 +140,13 @@ jobs:
134140
- uses: wyvox/action@v1
135141
with:
136142
repo-token: ${{ secrets.GITHUB_TOKEN }}
143+
- run: pnpm build
144+
- run: pnpm i -f # injected deps
137145
- name: Run Tests
138146
run: pnpm turbo test:scenario --filter ${{ matrix.test-app }} --log-prefix none -- --skip-cleanup
139147
env:
140148
SCENARIO: ${{ matrix.try-scenario }}
141149

142-
typecheck_v4:
143-
name: '4.* ${{ matrix.typescript-scenario }}'
144-
runs-on: ubuntu-latest
145-
# if: ${{ fromJSON(needs.setup.outputs.pending).atAll.typecheck }}
146-
timeout-minutes: 2
147-
needs: [test]
148-
continue-on-error: true
149-
strategy:
150-
fail-fast: true
151-
matrix:
152-
typescript-scenario:
153-
- typescript@4.8
154-
- typescript@4.9
155-
156-
steps:
157-
- uses: wyvox/action@v1
158-
with:
159-
repo-token: ${{ secrets.GITHUB_TOKEN }}
160-
- name: 'Change TS to ${{ matrix.typescript-scenario }}'
161-
run: |
162-
pnpm add --save-dev ${{ matrix.typescript-scenario}}
163-
pnpm remove @tsconfig/ember
164-
pnpm add @tsconfig/ember@^2.0.0
165-
working-directory: ./test-app
166-
- name: 'Type checking'
167-
run: pnpm turbo --filter 'test-app' lint:types
168-
169-
170150
typecheck_v5:
171151
name: '5.* ${{ matrix.typescript-scenario }}'
172152
runs-on: ubuntu-latest
@@ -189,6 +169,8 @@ jobs:
189169
- uses: wyvox/action@v1
190170
with:
191171
repo-token: ${{ secrets.GITHUB_TOKEN }}
172+
- run: pnpm build
173+
- run: pnpm i -f # injected deps
192174
- name: 'Change TS to ${{ matrix.typescript-scenario }}'
193175
run: 'pnpm add --save-dev ${{ matrix.typescript-scenario}}'
194176
working-directory: ./test-app

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Resources for reactive data fetching with ember-data's `store` service.
88
* ember-data v3.28 or above
99
* ember-auto-import v2 or above
1010
* ember-resources v5.3 or above
11-
* typescript v4.8 or above
11+
* typescript v5 or above
1212

1313
## Installation
1414

dev/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@typescript-eslint/eslint-plugin": "^6.19.0",
2929
"@typescript-eslint/parser": "^6.19.0",
3030
"eslint": "^8.41.0",
31-
"prettier": "^3.2.4",
31+
"prettier": "^3.5.3",
3232
"typescript": "^5.1.3"
3333
},
3434
"scripts": {

dev/pnpm-lock.yaml

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
{
2-
"presets": [["@babel/preset-typescript"]],
32
"plugins": [
4-
"@embroider/addon-dev/template-colocation-plugin",
5-
["@babel/plugin-transform-typescript", { "allowDeclareFields": true }],
6-
["@babel/plugin-proposal-decorators", { "version": "legacy" }],
7-
"@babel/plugin-proposal-class-properties"
3+
[
4+
"@babel/plugin-transform-typescript",
5+
{
6+
"allExtensions": true,
7+
"allowDeclareFields": true,
8+
"onlyRemoveTypeImports": true
9+
}
10+
],
11+
[
12+
"module:decorator-transforms",
13+
{
14+
"runtime": {
15+
"import": "decorator-transforms/runtime-esm"
16+
}
17+
}
18+
]
819
]
920
}

ember-data-resources/package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414
"dist-types"
1515
],
1616
"scripts": {
17-
"build": "concurrently 'npm:build:*'",
18-
"build:js": "rollup --config",
19-
"build:types": "rm -rf dist-types; pnpm glint --build",
17+
"prepare": "pnpm build",
18+
"build": "rollup --config",
2019
"lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'",
2120
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
2221
"lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern",
@@ -36,6 +35,7 @@
3635
"@ember/string": "^3.1.1",
3736
"@ember/test-waiters": "^3.1.0",
3837
"@embroider/addon-shim": "^1.0.0",
38+
"decorator-transforms": "^2.3.0",
3939
"ember-modify-based-class-resource": "^1.1.0"
4040
},
4141
"devDependencies": {
@@ -47,13 +47,15 @@
4747
"@babel/runtime": "^7.22.5",
4848
"@ember-data/store": "^5.0.0",
4949
"@ember-data/tracking": "^5.3.0",
50-
"@embroider/addon-dev": "^3.1.1",
50+
"@ember/library-tsconfig": "^1.1.3",
51+
"@embroider/addon-dev": "^8.0.0",
5152
"@glimmer/component": "^1.1.2",
5253
"@glimmer/tracking": "^1.1.2",
5354
"@glint/core": "^1.3.0",
5455
"@glint/environment-ember-loose": "^1.0.2",
5556
"@glint/template": "^1.0.2",
5657
"@nullvoxpopuli/eslint-configs": "^3.1.3",
58+
"@rollup/plugin-babel": "^6.0.4",
5759
"@tsconfig/ember": "^3.0.3",
5860
"@types/ember": "^4.0.0",
5961
"@types/ember-data__store": "^4.0.3",
@@ -76,7 +78,7 @@
7678
"@types/ember__utils": "^4.0.0",
7779
"@typescript-eslint/eslint-plugin": "^6.19.0",
7880
"@typescript-eslint/parser": "^6.19.0",
79-
"concurrently": "^8.2.0",
81+
"concurrently": "^9.1.2",
8082
"ember-resources": "^6.0.0",
8183
"ember-source": "~5.6.0",
8284
"ember-template-lint": "^5.10.3",
@@ -87,13 +89,12 @@
8789
"eslint-plugin-prettier": "^5.1.3",
8890
"eslint-plugin-qunit": "^8.0.1",
8991
"execa": "^8.0.1",
90-
"prettier": "^3.2.4",
91-
"prettier-plugin-ember-template-tag": "^2.0.0",
92+
"prettier": "^3.5.3",
93+
"prettier-plugin-ember-template-tag": "^2.0.5",
9294
"publint": "^0.2.7",
93-
"rollup": "~4.11.0",
95+
"rollup": "~4.40.2",
9496
"rollup-plugin-copy": "^3.5.0",
9597
"rollup-plugin-delete": "^2.0.0",
96-
"rollup-plugin-ts": "^3.4.5",
9798
"typescript": "^5.3.3"
9899
},
99100
"publishConfig": {

0 commit comments

Comments
 (0)