Skip to content

Commit 97689fd

Browse files
Merge pull request #1677 from glimmerjs/yk/config-refresh
Refresh tsconfig and eslint setup
2 parents 667877a + d60ce64 commit 97689fd

File tree

381 files changed

+21074
-15297
lines changed

Some content is hidden

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

381 files changed

+21074
-15297
lines changed

.eslintignore

-15
This file was deleted.

.eslintrc.cjs

-138
This file was deleted.

.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
guides/workspace/demos/auto-import.gif filter=lfs diff=lfs merge=lfs -text
2+
guides/workspace/demos/fixme.png filter=lfs diff=lfs merge=lfs -text
3+
guides/workspace/demos/dependency-links.png filter=lfs diff=lfs merge=lfs -text
4+
guides/workspace/demos/dependi-outdated.png filter=lfs diff=lfs merge=lfs -text
5+
guides/workspace/demos/dependi-update.png filter=lfs diff=lfs merge=lfs -text

.github/workflows/ci.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
- uses: wyvox/action@v1
2727
with:
2828
pnpm-args: '--ignore-scripts'
29-
node-version: 20.1.0
29+
node-version: 22.13.0
3030
repo-token: ${{ secrets.GITHUB_TOKEN }}
31-
- run: pnpm turbo build
31+
- run: pnpm turbo prepack
3232
- run: node ./bin/build-verify.mjs
3333

3434
lint:
@@ -41,9 +41,9 @@ jobs:
4141
- uses: wyvox/action@v1
4242
with:
4343
pnpm-args: '--ignore-scripts'
44-
node-version: 20.1.0
44+
node-version: 22.13.0
4545
repo-token: ${{ secrets.GITHUB_TOKEN }}
46-
- run: pnpm lint
46+
- run: pnpm repo:lint:all
4747

4848
test-chrome:
4949
name: Chrome
@@ -64,7 +64,7 @@ jobs:
6464
xdg-utils wget libcairo2
6565
- uses: wyvox/action@v1
6666
with:
67-
node-version: 20.1.0
67+
node-version: 22.13.0
6868
repo-token: ${{ secrets.GITHUB_TOKEN }}
6969
- run: pnpm test
7070

@@ -113,9 +113,9 @@ jobs:
113113
steps:
114114
- uses: wyvox/action@v1
115115
with:
116-
node-version: 20.1.0
116+
node-version: 22.13.0
117117
repo-token: ${{ secrets.GITHUB_TOKEN }}
118-
- run: pnpm turbo test:types
118+
- run: pnpm repo:lint:types
119119

120120
floating-dependencies:
121121
name: Floating Dependencies
@@ -127,6 +127,6 @@ jobs:
127127
- uses: wyvox/action@v1
128128
with:
129129
pnpm-args: '--no-lockfile'
130-
node-version: 20.1.0
130+
node-version: 22.13.0
131131
repo-token: ${{ secrets.GITHUB_TOKEN }}
132132
- run: pnpm test

.github/workflows/perf.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,13 @@ jobs:
4646
with:
4747
node-version: '22'
4848

49-
- name: RUN
49+
- name: Setup Benchmark Directory
5050
if: steps.did-change.outputs.changed == 'true'
5151
run: pnpm run benchmark:setup
52+
53+
- name: RUN
54+
if: steps.did-change.outputs.changed == 'true'
55+
run: pnpm run benchmark:run
5256

5357
- name: Remove unused artifacts
5458
if: steps.did-change.outputs.changed == 'true'

.github/workflows/plan-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- uses: wyvox/action-setup-pnpm@v3
5656
with:
5757
args: '--ignore-scripts'
58-
node-version: 20.1.0
58+
node-version: 22.13.0
5959

6060
- name: "Generate Explanation and Prep Changelogs"
6161
id: explanation

.github/workflows/publish.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,10 @@ jobs:
5353
- uses: wyvox/action-setup-pnpm@v3
5454
with:
5555
args: '--ignore-scripts'
56-
node-version: 20.1.0
56+
node-version: 22.13.0
5757
# This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
5858
node-registry-url: 'https://registry.npmjs.org'
5959

60-
- run: pnpm turbo build --force --no-cache
6160
- name: npm publish
6261
run: pnpm release-plan publish
6362
env:

.github/workflows/size.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
repo-token: ${{ secrets.GITHUB_TOKEN }}
3636
ref: ${{ inputs.BRANCH }}
3737

38-
- run: pnpm turbo build
38+
- run: pnpm turbo prepack
3939
- run: sudo snap install dust
4040

4141
- name: "Get sizes for development outputs"
@@ -77,7 +77,7 @@ jobs:
7777
git checkout main
7878
git clean -Xfd
7979
pnpm install
80-
pnpm turbo build
80+
pnpm turbo prepack
8181
8282
- name: "[Main] Get sizes for development outputs"
8383
id: main-dev

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/dist/
1+
/dist
22
**/dist
33
/control-dist/
44
node_modules/

.madgerc

-7
This file was deleted.

.meta-updater/formats/code.mjs

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { readFileSync, writeFileSync } from 'node:fs';
2+
3+
import { createFormat } from '@pnpm/meta-updater';
4+
import { equals } from 'ramda';
5+
import { update } from '../update.mjs';
6+
7+
/**
8+
* @import { FormatPlugin } from '@pnpm/meta-updater';
9+
*/
10+
11+
/**
12+
* @returns {FormatPlugin<string>}
13+
*/
14+
export const code = createFormat({
15+
read({ resolvedPath }) {
16+
return readFileSync(resolvedPath, { encoding: 'utf-8' });
17+
},
18+
update(actual, updater, options) {
19+
return updater(actual, options);
20+
},
21+
equal(expected, actual) {
22+
return equals(actual, expected);
23+
},
24+
async write(expected, options) {
25+
await update(options.resolvedPath, expected, writeFileSync);
26+
},
27+
});

.meta-updater/formats/json.mjs

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// @ts-check
2+
3+
import { basename } from 'node:path';
4+
5+
import { createFormat } from '@pnpm/meta-updater';
6+
import {} from '@pnpm/workspace.find-packages';
7+
import { loadJsonFile } from 'load-json-file';
8+
import { equals } from 'ramda';
9+
import { writeJsonFile } from 'write-json-file';
10+
import { update } from '../update.mjs';
11+
12+
/**
13+
* @import { PackageJson } from 'type-fest';
14+
* @import { FormatPlugin } from '@pnpm/meta-updater';
15+
* @import {ProjectManifest} from '@pnpm/types';
16+
*/
17+
18+
/**
19+
* @type {FormatPlugin<Record<string, import('load-json-file').JsonValue>>}
20+
*/
21+
export const json = createFormat({
22+
read({ resolvedPath }) {
23+
return loadJsonFile(resolvedPath);
24+
},
25+
update(actual, updater, options) {
26+
return updater(actual, options);
27+
},
28+
equal(expected, actual) {
29+
return equals(actual, expected);
30+
},
31+
async write(expected, options) {
32+
await update(options.resolvedPath, expected, async (content, path) => {
33+
if (content && basename(path) === 'package.json') {
34+
await options._writeProjectManifest(/** @type {ProjectManifest} */ (content));
35+
} else {
36+
await writeJsonFile(path, content, { detectIndent: true });
37+
}
38+
});
39+
},
40+
});
41+
42+
/**
43+
* @type {FormatPlugin<PackageJson>}
44+
*/
45+
export const packageJson = createFormat({
46+
read({ resolvedPath }) {
47+
return loadJsonFile(resolvedPath);
48+
},
49+
update(actual, updater, options) {
50+
return updater(actual, options);
51+
},
52+
equal(expected, actual) {
53+
return equals(actual, expected);
54+
},
55+
async write(expected, options) {
56+
await update(options.resolvedPath, expected, async (content) => {
57+
await options._writeProjectManifest(/** @type {ProjectManifest} */ (content));
58+
});
59+
},
60+
});

0 commit comments

Comments
 (0)