Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh tsconfig and eslint setup #1677

Merged
merged 2 commits into from
Jan 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 0 additions & 15 deletions .eslintignore

This file was deleted.

138 changes: 0 additions & 138 deletions .eslintrc.cjs

This file was deleted.

5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
guides/workspace/demos/auto-import.gif filter=lfs diff=lfs merge=lfs -text
guides/workspace/demos/fixme.png filter=lfs diff=lfs merge=lfs -text
guides/workspace/demos/dependency-links.png filter=lfs diff=lfs merge=lfs -text
guides/workspace/demos/dependi-outdated.png filter=lfs diff=lfs merge=lfs -text
guides/workspace/demos/dependi-update.png filter=lfs diff=lfs merge=lfs -text
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -26,9 +26,9 @@ jobs:
- uses: wyvox/action@v1
with:
pnpm-args: '--ignore-scripts'
node-version: 20.1.0
node-version: 22.13.0
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm turbo build
- run: pnpm turbo prepack
- run: node ./bin/build-verify.mjs

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

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

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

floating-dependencies:
name: Floating Dependencies
@@ -127,6 +127,6 @@ jobs:
- uses: wyvox/action@v1
with:
pnpm-args: '--no-lockfile'
node-version: 20.1.0
node-version: 22.13.0
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm test
6 changes: 5 additions & 1 deletion .github/workflows/perf.yml
Original file line number Diff line number Diff line change
@@ -46,9 +46,13 @@ jobs:
with:
node-version: '22'

- name: RUN
- name: Setup Benchmark Directory
if: steps.did-change.outputs.changed == 'true'
run: pnpm run benchmark:setup

- name: RUN
if: steps.did-change.outputs.changed == 'true'
run: pnpm run benchmark:run

- name: Remove unused artifacts
if: steps.did-change.outputs.changed == 'true'
2 changes: 1 addition & 1 deletion .github/workflows/plan-release.yml
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ jobs:
- uses: wyvox/action-setup-pnpm@v3
with:
args: '--ignore-scripts'
node-version: 20.1.0
node-version: 22.13.0

- name: "Generate Explanation and Prep Changelogs"
id: explanation
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -53,11 +53,10 @@ jobs:
- uses: wyvox/action-setup-pnpm@v3
with:
args: '--ignore-scripts'
node-version: 20.1.0
node-version: 22.13.0
# This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
node-registry-url: 'https://registry.npmjs.org'

- run: pnpm turbo build --force --no-cache
- name: npm publish
run: pnpm release-plan publish
env:
4 changes: 2 additions & 2 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ inputs.BRANCH }}

- run: pnpm turbo build
- run: pnpm turbo prepack
- run: sudo snap install dust

- name: "Get sizes for development outputs"
@@ -77,7 +77,7 @@ jobs:
git checkout main
git clean -Xfd
pnpm install
pnpm turbo build
pnpm turbo prepack

- name: "[Main] Get sizes for development outputs"
id: main-dev
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/dist/
/dist
**/dist
/control-dist/
node_modules/
7 changes: 0 additions & 7 deletions .madgerc

This file was deleted.

27 changes: 27 additions & 0 deletions .meta-updater/formats/code.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { readFileSync, writeFileSync } from 'node:fs';

import { createFormat } from '@pnpm/meta-updater';
import { equals } from 'ramda';
import { update } from '../update.mjs';

/**
* @import { FormatPlugin } from '@pnpm/meta-updater';
*/

/**
* @returns {FormatPlugin<string>}
*/
export const code = createFormat({
read({ resolvedPath }) {
return readFileSync(resolvedPath, { encoding: 'utf-8' });
},
update(actual, updater, options) {
return updater(actual, options);
},
equal(expected, actual) {
return equals(actual, expected);
},
async write(expected, options) {
await update(options.resolvedPath, expected, writeFileSync);
},
});
60 changes: 60 additions & 0 deletions .meta-updater/formats/json.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// @ts-check

import { basename } from 'node:path';

import { createFormat } from '@pnpm/meta-updater';
import {} from '@pnpm/workspace.find-packages';
import { loadJsonFile } from 'load-json-file';
import { equals } from 'ramda';
import { writeJsonFile } from 'write-json-file';
import { update } from '../update.mjs';

/**
* @import { PackageJson } from 'type-fest';
* @import { FormatPlugin } from '@pnpm/meta-updater';
* @import {ProjectManifest} from '@pnpm/types';
*/

/**
* @type {FormatPlugin<Record<string, import('load-json-file').JsonValue>>}
*/
export const json = createFormat({
read({ resolvedPath }) {
return loadJsonFile(resolvedPath);
},
update(actual, updater, options) {
return updater(actual, options);
},
equal(expected, actual) {
return equals(actual, expected);
},
async write(expected, options) {
await update(options.resolvedPath, expected, async (content, path) => {
if (content && basename(path) === 'package.json') {
await options._writeProjectManifest(/** @type {ProjectManifest} */ (content));
} else {
await writeJsonFile(path, content, { detectIndent: true });
}
});
},
});

/**
* @type {FormatPlugin<PackageJson>}
*/
export const packageJson = createFormat({
read({ resolvedPath }) {
return loadJsonFile(resolvedPath);
},
update(actual, updater, options) {
return updater(actual, options);
},
equal(expected, actual) {
return equals(actual, expected);
},
async write(expected, options) {
await update(options.resolvedPath, expected, async (content) => {
await options._writeProjectManifest(/** @type {ProjectManifest} */ (content));
});
},
});
Loading