Skip to content

Commit

Permalink
build: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
j4k0xb committed Apr 20, 2024
1 parent 78f8e30 commit 13564f6
Show file tree
Hide file tree
Showing 15 changed files with 1,124 additions and 566 deletions.
6 changes: 0 additions & 6 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"devDependencies": {
"@webcrack/eslint-config": "workspace:*",
"@webcrack/typescript-config": "workspace:*",
"typescript": "^5.3.3",
"typescript": "^5.4.5",
"vitepress": "1.0.0-rc.31"
}
}
5 changes: 0 additions & 5 deletions apps/playground/.eslintrc.cjs

This file was deleted.

6 changes: 6 additions & 0 deletions apps/playground/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import config from '@webcrack/eslint-config';

/**
* @type {import('eslint').Linter.FlatConfig[]}
*/
export default config;
26 changes: 13 additions & 13 deletions apps/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@
},
"devDependencies": {
"@types/babel__generator": "^7.6.8",
"@types/node": "^20.11.5",
"@types/node": "^20.12.7",
"@webcrack/eslint-config": "workspace:*",
"@webcrack/typescript-config": "workspace:*",
"autoprefixer": "^10.4.17",
"daisyui": "^4.6.0",
"postcss": "^8.4.33",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3",
"vite": "^5.0.12",
"autoprefixer": "^10.4.19",
"daisyui": "^4.10.2",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5",
"vite": "^5.2.10",
"vite-plugin-monaco-editor": "^1.1.0",
"vite-plugin-node-polyfills": "^0.19.0",
"vite-plugin-solid": "^2.8.2"
"vite-plugin-node-polyfills": "^0.21.0",
"vite-plugin-solid": "^2.10.2"
},
"dependencies": {
"@babel/generator": "^7.23.6",
"@babel/types": "^7.23.6",
"monaco-editor": "^0.45.0",
"@babel/generator": "^7.24.4",
"@babel/types": "^7.24.0",
"monaco-editor": "^0.47.0",
"sandybox": "^1.1.2",
"solid-js": "^1.8.11",
"solid-js": "^1.8.16",
"webcrack": "workspace:*"
}
}
6 changes: 6 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import config from '@webcrack/eslint-config';

/**
* @type {import('eslint').Linter.FlatConfig[]}
*/
export default config;
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"private": true,
"type": "module",
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev --parallel",
Expand All @@ -11,15 +12,16 @@
},
"devDependencies": {
"@webcrack/eslint-config": "workspace:*",
"eslint": "^8.56.0",
"prettier": "^3.2.4",
"turbo": "^1.11.3",
"vitest": "^1.2.1"
"eslint": "^9.1.0",
"prettier": "^3.2.5",
"turbo": "^1.13.2",
"vitest": "^1.5.0"
},
"packageManager": "pnpm@8.14.1",
"packageManager": "pnpm@9.0.4",
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]"
}
}
}
30 changes: 30 additions & 0 deletions packages/config-eslint/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import js from '@eslint/js';
import eslintConfigPrettier from 'eslint-config-prettier';
import tseslint from 'typescript-eslint';

export default tseslint.config(
js.configs.recommended,
eslintConfigPrettier,
...tseslint.configs.recommendedTypeChecked,
{
plugins: {
'@typescript-eslint': tseslint.plugin,
},
languageOptions: {
parser: tseslint.parser,
parserOptions: {
project: true,
},
},
rules: {
'@typescript-eslint/consistent-type-exports': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
},
},
{
files: ['**/*.ts', '**/*.tsx'],
},
{
ignores: ['**/*.js'],
},
);
22 changes: 0 additions & 22 deletions packages/config-eslint/index.js

This file was deleted.

11 changes: 8 additions & 3 deletions packages/config-eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
"version": "0.0.0",
"main": "index.js",
"private": true,
"type": "module",
"exports": {
".": {
"import": "./eslint.config.js"
}
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"eslint-config-prettier": "^9.1.0"
"eslint-config-prettier": "^9.1.0",
"typescript-eslint": "^7.7.0"
}
}
6 changes: 0 additions & 6 deletions packages/webcrack/.eslintrc.cjs

This file was deleted.

11 changes: 11 additions & 0 deletions packages/webcrack/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import config from '@webcrack/eslint-config';

/**
* @type {import('eslint').Linter.FlatConfig[]}
*/
export default [
...config,
{
ignores: ['tmp', '**/test/samples', 'vitest.config.ts'],
},
];
20 changes: 10 additions & 10 deletions packages/webcrack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
"unbundle"
],
"dependencies": {
"@babel/generator": "^7.23.6",
"@babel/generator": "^7.24.4",
"@babel/helper-validator-identifier": "^7.22.20",
"@babel/parser": "^7.23.6",
"@babel/template": "^7.22.15",
"@babel/traverse": "^7.23.7",
"@babel/types": "^7.23.6",
"@codemod/matchers": "^1.7.0",
"@babel/parser": "^7.24.4",
"@babel/template": "^7.24.0",
"@babel/traverse": "^7.24.1",
"@babel/types": "^7.24.0",
"@codemod/matchers": "^1.7.1",
"babel-plugin-minify-mangle-names": "^0.5.1",
"commander": "^11.1.0",
"commander": "^12.0.0",
"debug": "^4.3.4",
"isolated-vm": "^4.7.2"
},
Expand All @@ -58,10 +58,10 @@
"@types/babel__template": "^7.4.4",
"@types/babel__traverse": "^7.20.5",
"@types/debug": "^4.1.12",
"@types/node": "^20.11.5",
"@types/node": "^20.12.7",
"@webcrack/eslint-config": "workspace:*",
"@webcrack/typescript-config": "workspace:*",
"esbuild": "^0.19.11",
"typescript": "^5.3.3"
"esbuild": "^0.20.2",
"typescript": "^5.4.5"
}
}
13 changes: 13 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/esm/vs/base/common/platform.js b/esm/vs/base/common/platform.js
index d507327daec3cdf5027bd886f898c364c5433ecd..25fe1dd9d08b75694e9e90c62391576f487410b0 100644
--- a/esm/vs/base/common/platform.js
+++ b/esm/vs/base/common/platform.js
@@ -26,7 +26,7 @@ if (typeof $globalThis.vscode !== 'undefined' && typeof $globalThis.vscode.proce
// Native environment (sandboxed)
nodeProcess = $globalThis.vscode.process;
}
-else if (typeof process !== 'undefined') {
+else if (typeof process !== 'undefined' && typeof process?.versions?.node === 'string') {
// Native environment (non-sandboxed)
nodeProcess = process;
}
Loading

0 comments on commit 13564f6

Please sign in to comment.