Skip to content

Commit

Permalink
Upgrade dependencies (#156)
Browse files Browse the repository at this point in the history
* Upgrade dependencies

* fix yarn build

* bump flakes

* fix tsc errors
  • Loading branch information
macalinao authored Nov 22, 2023
1 parent 32f630a commit 3d6b02a
Show file tree
Hide file tree
Showing 17 changed files with 2,393 additions and 1,621 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"titleBar.inactiveForeground": "#000000"
},
"eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
"typescript.enablePromptUseWorkspaceTsdk": true,
"cSpell.words": [
"saberhq"
Expand Down
881 changes: 0 additions & 881 deletions .yarn/releases/yarn-4.0.0-rc.48.cjs

This file was deleted.

893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.2.cjs

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions .yarn/sdks/eslint/lib/unsupported-api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint/use-at-your-own-risk
require(absPnpApiPath).setup();
}
}

// Defer to the real eslint/use-at-your-own-risk your application uses
module.exports = absRequire(`eslint/use-at-your-own-risk`);
12 changes: 10 additions & 2 deletions .yarn/sdks/eslint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"name": "eslint",
"version": "8.47.0-sdk",
"version": "8.54.0-sdk",
"main": "./lib/api.js",
"type": "commonjs"
"type": "commonjs",
"bin": {
"eslint": "./bin/eslint.js"
},
"exports": {
"./package.json": "./package.json",
".": "./lib/api.js",
"./use-at-your-own-risk": "./lib/unsupported-api.js"
}
}
20 changes: 20 additions & 0 deletions .yarn/sdks/prettier/bin/prettier.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier/bin/prettier.cjs
require(absPnpApiPath).setup();
}
}

// Defer to the real prettier/bin/prettier.cjs your application uses
module.exports = absRequire(`prettier/bin/prettier.cjs`);
File renamed without changes.
7 changes: 4 additions & 3 deletions .yarn/sdks/prettier/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "prettier",
"version": "2.8.8-sdk",
"main": "./index.js",
"type": "commonjs"
"version": "3.1.0-sdk",
"main": "./index.cjs",
"type": "commonjs",
"bin": "./bin/prettier.cjs"
}
6 changes: 3 additions & 3 deletions .yarn/sdks/typescript/lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/typescript.js
// Setup the environment to be able to require typescript
require(absPnpApiPath).setup();
}
}

// Defer to the real typescript/lib/typescript.js your application uses
module.exports = absRequire(`typescript/lib/typescript.js`);
// Defer to the real typescript your application uses
module.exports = absRequire(`typescript`);
8 changes: 6 additions & 2 deletions .yarn/sdks/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"name": "typescript",
"version": "5.1.6-sdk",
"version": "5.3.2-sdk",
"main": "./lib/typescript.js",
"type": "commonjs"
"type": "commonjs",
"bin": {
"tsc": "./bin/tsc",
"tsserver": "./bin/tsserver"
}
}
2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ enableGlobalCache: false

nodeLinker: pnp

yarnPath: .yarn/releases/yarn-4.0.0-rc.48.cjs
yarnPath: .yarn/releases/yarn-4.0.2.cjs
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@
"*.{md,js,jsx,json,yml,yaml,css,md}": "prettier --write"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.3.3",
"@rushstack/eslint-patch": "^1.6.0",
"@saberhq/eslint-config": "workspace:*",
"@saberhq/eslint-config-react": "workspace:*",
"@saberhq/tsconfig": "workspace:*",
"@types/eslint": "^8.44.2",
"@types/node": "^18.17.5",
"@types/react": "^18.2.20",
"@typescript-eslint/utils": "^6.3.0",
"@yarnpkg/doctor": "^4.0.0-rc.48",
"eslint": "^8.47.0",
"@types/eslint": "^8.44.7",
"@types/node": "^18.18.12",
"@types/react": "^18.2.38",
"@typescript-eslint/utils": "^6.12.0",
"@yarnpkg/doctor": "^4.0.1",
"eslint": "^8.54.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"prettier": "^2",
"typescript": "^5.1.6"
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"typescript": "^5.3.2"
},
"scripts": {
"build": "yarn workspaces foreach --exclude @saberhq/saber-build-common -ptv run build",
"clean": "yarn workspaces foreach --exclude @saberhq/saber-build-common -ptv run clean",
"publish:all": "yarn workspaces foreach --exclude @saberhq/saber-build-common -ptv npm publish",
"build": "yarn workspaces foreach --all --exclude @saberhq/saber-build-common -ptv run build",
"clean": "yarn workspaces foreach --all --exclude @saberhq/saber-build-common -ptv run clean",
"publish:all": "yarn workspaces foreach --all --exclude @saberhq/saber-build-common -ptv npm publish",
"typecheck": "tsc --build",
"lint": "eslint . --cache",
"lint:fix": "eslint . --cache --fix",
Expand All @@ -39,5 +39,5 @@
"doctor:packages": "yarn doctor packages/"
},
"version": "3.0.0",
"packageManager": "[email protected].0-rc.48"
"packageManager": "[email protected].2"
}
14 changes: 7 additions & 7 deletions packages/eslint-config-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@
},
"dependencies": {
"@saberhq/eslint-config": "workspace:^",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0"
},
"devDependencies": {
"@saberhq/tsconfig": "workspace:^",
"@types/eslint": "^8.44.2",
"@types/node": "^18.17.5",
"@typescript-eslint/utils": "^6.3.0",
"eslint": "^8.47.0",
"typescript": "^5.1.6"
"@types/eslint": "^8.44.7",
"@types/node": "^18.18.12",
"@typescript-eslint/utils": "^6.12.0",
"eslint": "^8.54.0",
"typescript": "^5.3.2"
}
}
20 changes: 10 additions & 10 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@
"eslint": ">=7"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-node": "^0.3.9",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-prettier": "^4",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unused-imports": "^3.0.0",
"prettier": "^2"
"prettier": "^3.1.0"
},
"devDependencies": {
"@saberhq/tsconfig": "workspace:^",
"@types/eslint": "^8.44.2",
"@types/node": "^18.17.5",
"@typescript-eslint/utils": "^6.3.0",
"eslint": "^8.47.0",
"typescript": "^5.1.6"
"@types/eslint": "^8.44.7",
"@types/node": "^18.18.12",
"@typescript-eslint/utils": "^6.12.0",
"eslint": "^8.54.0",
"typescript": "^5.3.2"
}
}
1 change: 1 addition & 0 deletions packages/tsconfig/tsconfig.module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"extends": "./tsconfig.lib.json",
"display": "Saber Node16 TSConfig (recommended)",
"compilerOptions": {
"module": "Node16",
"moduleResolution": "Node16"
}
}
Loading

0 comments on commit 3d6b02a

Please sign in to comment.