Skip to content

Commit 2619b39

Browse files
authored
Upgrade everything (#44)
* Bump flakes * bump gh actions * update everything * update yarn sdks * lint fix
1 parent 4a5c0ec commit 2619b39

29 files changed

+2865
-2250
lines changed

.envrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
watch_file flake.nix
22
watch_file flake.lock
3-
mkdir -p .direnv
4-
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
3+
use flake

.github/workflows/generate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
name: Sync
1818

1919
steps:
20-
- uses: actions/checkout@v3
21-
- uses: actions/setup-node@v3
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-node@v4
2222
- name: Get yarn cache directory path
2323
id: yarn-cache-dir-path
2424
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
2525
- name: Yarn Cache
26-
uses: actions/cache@v2
26+
uses: actions/cache@v3
2727
with:
2828
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
2929
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
runs-on: ubuntu-latest
1414
name: Check
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-node@v3
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
1818
- name: Get yarn cache directory path
1919
id: yarn-cache-dir-path
2020
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
2121
- name: Yarn Cache
22-
uses: actions/cache@v3.0.11
22+
uses: actions/cache@v3
2323
with:
2424
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
2525
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"eslint.nodePath": ".yarn/sdks",
77
"typescript.tsdk": ".yarn/sdks/typescript/lib",
88
"typescript.enablePromptUseWorkspaceTsdk": true,
9-
"prettier.prettierPath": ".yarn/sdks/prettier/index.js"
9+
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs"
1010
}

.yarn/releases/yarn-4.0.0-rc.26.cjs

Lines changed: 0 additions & 811 deletions
This file was deleted.

.yarn/releases/yarn-4.0.2.cjs

Lines changed: 893 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env node
2+
3+
const {existsSync} = require(`fs`);
4+
const {createRequire} = require(`module`);
5+
const {resolve} = require(`path`);
6+
7+
const relPnpApiPath = "../../../../.pnp.cjs";
8+
9+
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
10+
const absRequire = createRequire(absPnpApiPath);
11+
12+
if (existsSync(absPnpApiPath)) {
13+
if (!process.versions.pnp) {
14+
// Setup the environment to be able to require eslint/use-at-your-own-risk
15+
require(absPnpApiPath).setup();
16+
}
17+
}
18+
19+
// Defer to the real eslint/use-at-your-own-risk your application uses
20+
module.exports = absRequire(`eslint/use-at-your-own-risk`);

.yarn/sdks/eslint/package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"name": "eslint",
3-
"version": "8.26.0-sdk",
3+
"version": "8.54.0-sdk",
44
"main": "./lib/api.js",
5-
"type": "commonjs"
5+
"type": "commonjs",
6+
"bin": {
7+
"eslint": "./bin/eslint.js"
8+
},
9+
"exports": {
10+
"./package.json": "./package.json",
11+
".": "./lib/api.js",
12+
"./use-at-your-own-risk": "./lib/unsupported-api.js"
13+
}
614
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env node
2+
3+
const {existsSync} = require(`fs`);
4+
const {createRequire} = require(`module`);
5+
const {resolve} = require(`path`);
6+
7+
const relPnpApiPath = "../../../../.pnp.cjs";
8+
9+
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
10+
const absRequire = createRequire(absPnpApiPath);
11+
12+
if (existsSync(absPnpApiPath)) {
13+
if (!process.versions.pnp) {
14+
// Setup the environment to be able to require prettier/bin/prettier.cjs
15+
require(absPnpApiPath).setup();
16+
}
17+
}
18+
19+
// Defer to the real prettier/bin/prettier.cjs your application uses
20+
module.exports = absRequire(`prettier/bin/prettier.cjs`);

0 commit comments

Comments
 (0)