Skip to content

Commit ddb7d94

Browse files
committed
Chore: Package constraints and bumps #181
1 parent 032e2e3 commit ddb7d94

File tree

26 files changed

+645
-2273
lines changed

26 files changed

+645
-2273
lines changed

.vscode/extensions.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
5+
// List of extensions which should be recommended for users of this workspace.
6+
"recommendations": [
7+
"dbaeumer.vscode-eslint",
8+
"rvest.vs-code-prettier-eslint",
9+
"augustocdias.tasks-shell-input",
10+
"vitest.explorer"
11+
],
12+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
13+
"unwantedRecommendations": []
14+
}

.vscode/launch.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
// From https://vitest.dev/guide/debugging#vs-code
3+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
4+
"version": "0.2.0",
5+
"configurations": [
6+
{
7+
"type": "node",
8+
"request": "launch",
9+
"name": "Debug Current Test File",
10+
"autoAttachChildProcesses": true,
11+
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
12+
"program": "${input:GIT_ROOT}/node_modules/vitest/vitest.mjs",
13+
"args": [
14+
"watch", "${relativeFile}",
15+
16+
// https://vitest.dev/guide/improving-performance
17+
"--no-isolate", "--no-file-parallelism",
18+
"--pool", "threads", "--poolOptions.threads.singleThread"
19+
// "--pool", "forks", "--poolOptions.forks.singleFork"
20+
],
21+
"smartStep": true,
22+
"outFiles": ["${workspaceRoot}/dist/**/*.js"],
23+
"console": "integratedTerminal",
24+
"cwd": "${workspaceRoot}",
25+
},
26+
27+
// https://www.builder.io/blog/debug-nodejs
28+
{
29+
"type": "node",
30+
"request": "launch",
31+
"name": "Debug Current Test File with Remote Debugger",
32+
"autoAttachChildProcesses": true,
33+
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
34+
"program": "${input:GIT_ROOT}/node_modules/vitest/vitest.mjs",
35+
"args": [
36+
"watch", "${relativeFile}",
37+
"--inspect-brk", "--inspect",
38+
"--no-isolate", "--no-file-parallelism",
39+
"--pool", "threads", "--poolOptions.threads.singleThread"
40+
// "--pool", "forks", "--poolOptions.forks.singleFork"
41+
],
42+
"smartStep": true,
43+
"outFiles": ["${workspaceRoot}/dist/**/*.js"],
44+
"console": "integratedTerminal",
45+
"cwd": "${workspaceRoot}",
46+
}
47+
],
48+
49+
// Need to install `augustocdias.tasks-shell-input` extension
50+
"inputs": [
51+
{
52+
"id": "GIT_ROOT",
53+
"type": "command",
54+
"command": "shellCommand.execute",
55+
"args": {
56+
"command": "git rev-parse --show-toplevel",
57+
"useSingleResult": true,
58+
"useFirstResult": true
59+
}
60+
}
61+
]
62+
}

.vscode/settings.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"git.openRepositoryInParentFolders": "always",
3+
"typescript.enablePromptUseWorkspaceTsdk": true,
4+
"typescript.tsdk": "./node_modules/typescript/lib",
5+
"editor.insertSpaces": true,
6+
"editor.tabSize": 2,
7+
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
8+
"editor.formatOnPaste": false, // required
9+
"editor.formatOnType": false, // required
10+
"editor.formatOnSave": true, // optional
11+
"editor.formatOnSaveMode": "file", // required to format on save
12+
"files.autoSave": "onFocusChange", // optional but recommended
13+
"vs-code-prettier-eslint.prettierLast": false, // set as "true" to run 'prettier' last not first
14+
"editor.codeActionsOnSave": {
15+
"source.fixAll.eslint": "explicit"
16+
},
17+
"vscode-color-picker.languages": [
18+
"html",
19+
"css",
20+
"python",
21+
"jsonc",
22+
"javascript",
23+
"javascriptreact",
24+
"typescript",
25+
"typescriptreact",
26+
"vue"
27+
]
28+
}

configs/eslint-config-custom/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
}
1818
},
1919
"devDependencies": {
20-
"@eslint/js": "^9.23.0",
21-
"@typescript-eslint/parser": "^8.28.0",
22-
"eslint-config-prettier": "^10.1.1",
23-
"eslint-plugin-prettier": "^5.2.5",
20+
"@eslint/js": "^9.24.0",
21+
"@typescript-eslint/parser": "^8.29.1",
22+
"eslint-config-prettier": "^10.1.2",
23+
"eslint-plugin-prettier": "^5.2.6",
2424
"eslint-plugin-yml": "^1.17.0",
25-
"globals": "^15.14.0",
25+
"globals": "^16.0.0",
2626
"prettier-config-custom": "workspace:^",
27-
"typescript-eslint": "^8.28.0",
27+
"typescript-eslint": "^8.29.1",
2828
"yaml-eslint-parser": "^1.3.0"
2929
},
3030
"peerDependencies": {

examples/react-babel/package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,43 +11,43 @@
1111
"preview": "vite preview"
1212
},
1313
"dependencies": {
14-
"@babel/core": "^7.18.2",
15-
"@babel/preset-typescript": "^7.18.2",
14+
"@babel/core": "^7.26.10",
15+
"@babel/preset-typescript": "^7.27.0",
1616
"@emotion/hash": "^0.9.2",
17-
"@mincho-js/css": "workspace:*",
18-
"@mincho-js/integration": "workspace:*",
19-
"@mincho-js/react": "workspace:*",
20-
"@mincho-js/vite": "workspace:*",
21-
"@vanilla-extract/css": "^1.14.0",
22-
"@vanilla-extract/css-utils": "^0.1.3",
17+
"@mincho-js/css": "workspace:^",
18+
"@mincho-js/integration": "workspace:^",
19+
"@mincho-js/react": "workspace:^",
20+
"@mincho-js/vite": "workspace:^",
21+
"@vanilla-extract/css": "^1.17.1",
22+
"@vanilla-extract/css-utils": "^0.1.4",
2323
"@vanilla-extract/private": "^1.0.6",
2424
"css-what": "^6.1.0",
2525
"cssesc": "^3.0.0",
2626
"dedent": "^1.5.3",
2727
"deep-object-diff": "^1.1.9",
2828
"deepmerge": "^4.3.1",
29-
"lru-cache": "^11.0.2",
30-
"media-query-parser": "2.0.0",
29+
"lru-cache": "^11.1.0",
30+
"media-query-parser": "3.0.2",
3131
"modern-ahocorasick": "^2.0.4",
3232
"picocolors": "^1.1.1",
33-
"react": "^18.2.0",
34-
"react-dom": "^18.2.0",
35-
"scheduler": "^0.25.0"
33+
"react": "^19.1.0",
34+
"react-dom": "^19.1.0",
35+
"scheduler": "^0.26.0"
3636
},
3737
"devDependencies": {
38-
"@eslint/js": "^8.56.0",
39-
"@types/babel__core": "^7",
40-
"@types/cssesc": "^3",
41-
"@types/react": "^18.2.48",
42-
"@types/react-dom": "^18.2.18",
43-
"@types/scheduler": "^0",
38+
"@eslint/js": "^9.24.0",
39+
"@types/babel__core": "^7.20.5",
40+
"@types/cssesc": "^3.0.2",
41+
"@types/react": "^19.1.1",
42+
"@types/react-dom": "^19.1.2",
43+
"@types/scheduler": "^0.26.0",
4444
"@vitejs/plugin-react": "^4.3.4",
45-
"eslint": "^8.56.0",
46-
"eslint-plugin-react-hooks": "^4.6.0",
47-
"eslint-plugin-react-refresh": "^0.4.18",
48-
"globals": "^15.14.0",
49-
"typescript": "~5.3.3",
50-
"typescript-eslint": "^7.0.1",
51-
"vite": "^5.0.0"
45+
"eslint": "^9.24.0",
46+
"eslint-plugin-react-hooks": "^5.2.0",
47+
"eslint-plugin-react-refresh": "^0.4.19",
48+
"globals": "^16.0.0",
49+
"typescript": "~5.8.3",
50+
"typescript-eslint": "^8.29.1",
51+
"vite": "^6.2.6"
5252
}
5353
}

examples/react-swc/eslint.config.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
// @ts-check
22

3+
import { cwd } from "node:process";
34
import globals from "globals";
45
import eslint from "@eslint/js";
56
import tseslint from "typescript-eslint";
67
import tsParser from "@typescript-eslint/parser";
78
import reactRefreshPlugin from "eslint-plugin-react-refresh";
89
import reactHooksPlugin from "eslint-plugin-react-hooks";
9-
import { fixupPluginRules } from "@eslint/compat";
1010

1111
export default tseslint.config(
1212
eslint.configs.recommended,
1313
...tseslint.configs.recommendedTypeChecked,
1414
{
1515
languageOptions: {
1616
parserOptions: {
17-
project: ["./tsconfig.json", "./tsconfig.node.json"],
17+
project: ["tsconfig.json"],
18+
tsconfigRootDir: cwd(),
19+
projectService: true,
1820
},
1921
},
2022
},
@@ -23,7 +25,9 @@ export default tseslint.config(
2325
languageOptions: {
2426
parser: tsParser,
2527
parserOptions: {
26-
project: ["tsconfig.json", "tsconfig.node.json"],
28+
project: ["tsconfig.json"],
29+
tsconfigRootDir: cwd(),
30+
projectService: true,
2731
ecmaFeatures: { jsx: true },
2832
},
2933
ecmaVersion: "latest",
@@ -32,12 +36,8 @@ export default tseslint.config(
3236
},
3337
plugins: {
3438
"react-refresh": reactRefreshPlugin,
35-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
36-
// @ts-ignore: error TS2345: Index signature for type 'string' is missing in type 'string[]'.ts
37-
"react-hooks": fixupPluginRules(reactHooksPlugin),
39+
"react-hooks": reactHooksPlugin,
3840
},
39-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
40-
// @ts-ignore: error TS2322: type 'string' is not assignable to type 'RuleEntry | undefined'.ts(2322)
4141
rules: {
4242
...reactHooksPlugin.configs.recommended.rules,
4343
"react-refresh/only-export-components": [
@@ -47,7 +47,7 @@ export default tseslint.config(
4747
},
4848
},
4949
{
50-
files: ["*.js"],
50+
files: ["*.js", "*.cjs", "*.mjs"],
5151
extends: [tseslint.configs.disableTypeChecked],
5252
},
5353
{

examples/react-swc/package.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,22 @@
1515
"react-dom": "^19.1.0"
1616
},
1717
"devDependencies": {
18-
"@eslint/compat": "^1.2.7",
19-
"@eslint/js": "^9.23.0",
18+
"@eslint/js": "^9.24.0",
2019
"@mincho-js/css": "workspace:^",
21-
"@types/react": "^19.0.12",
22-
"@types/react-dom": "^19.0.4",
23-
"@typescript-eslint/eslint-plugin": "^8.28.0",
24-
"@typescript-eslint/parser": "^8.28.0",
20+
"@types/react": "^19.1.1",
21+
"@types/react-dom": "^19.1.2",
22+
"@typescript-eslint/eslint-plugin": "^8.29.1",
23+
"@typescript-eslint/parser": "^8.29.1",
2524
"@vanilla-extract/css": "^1.17.1",
2625
"@vanilla-extract/esbuild-plugin": "^2.3.15",
2726
"@vanilla-extract/vite-plugin": "^5.0.1",
2827
"@vitejs/plugin-react-swc": "^3.8.1",
29-
"eslint": "^9.23.0",
28+
"eslint": "^9.24.0",
3029
"eslint-plugin-react-hooks": "^5.2.0",
3130
"eslint-plugin-react-refresh": "^0.4.19",
32-
"globals": "^15.14.0",
33-
"typescript": "^5.8.2",
34-
"typescript-eslint": "^8.28.0",
35-
"vite": "^6.1.2"
31+
"globals": "^16.0.0",
32+
"typescript": "^5.8.3",
33+
"typescript-eslint": "^8.29.1",
34+
"vite": "^6.2.6"
3635
}
3736
}

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,24 @@
4848
"@mincho-js/debug-log": "workspace:^",
4949
"@monorepo-utils/workspaces-to-typescript-project-references": "^2.10.4",
5050
"@types/eslint": "^9.6.1",
51-
"@types/node": "^22.13.14",
51+
"@types/node": "^22.14.1",
5252
"@typescript/analyze-trace": "^0.10.1",
5353
"@vanilla-extract/vite-plugin": "^5.0.1",
5454
"@vitest/coverage-v8": "^3.1.1",
55+
"@yarnpkg/types": "^4.0.1",
5556
"c8": "^10.1.3",
56-
"eslint": "^9.23.0",
57+
"eslint": "^9.24.0",
5758
"eslint-config-custom": "workspace:^",
5859
"prettier": "^3.5.3",
5960
"prettier-eslint": "^16.3.0",
6061
"rimraf": "6.0.0",
6162
"terser": "^5.39.0",
62-
"turbo": "^2.4.4",
63-
"typescript": "^5.8.2",
64-
"vite": "^6.1.2",
63+
"turbo": "^2.5.0",
64+
"typescript": "^5.8.3",
65+
"vite": "^6.2.6",
6566
"vite-node": "^3.1.1",
66-
"vitest": "^3.1.1"
67+
"vitest": "^3.1.1",
68+
"yarn-constraints-rules": "^0.1.0"
6769
},
6870
"dependencies": {
6971
"tslib": "^2.8.1"

packages/babel/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@
5353
},
5454
"prettier": "prettier-config-custom",
5555
"dependencies": {
56-
"@babel/core": "^7.18.2",
57-
"@babel/helper-module-imports": "^7.16.7",
58-
"@babel/preset-typescript": "^7.22.5",
59-
"@babel/traverse": "^7.22.5",
56+
"@babel/core": "^7.26.10",
57+
"@babel/helper-module-imports": "^7.25.9",
58+
"@babel/preset-typescript": "^7.27.0",
59+
"@babel/traverse": "^7.27.0",
6060
"@emotion/hash": "^0.9.2"
6161
},
6262
"devDependencies": {
63-
"@types/babel__core": "^7.1.19",
64-
"@types/babel__generator": "^7.6.8",
65-
"@types/babel__traverse": "^7.0.19",
63+
"@types/babel__core": "^7.20.5",
64+
"@types/babel__generator": "^7.27.0",
65+
"@types/babel__traverse": "^7.20.7",
6666
"eslint-config-custom": "workspace:^",
6767
"prettier-config-custom": "workspace:^",
6868
"tsconfig-custom": "workspace:^",

packages/babel/tsconfig.node.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,12 @@
44
"tsBuildInfoFile": "./.cache/typescript/tsbuildinfo-node",
55
"outDir": "./.cache/tsbuild-node"
66
},
7-
"include": ["vite.config.ts", "eslint.config.js"],
7+
"include": [
8+
"vite.config.ts",
9+
"eslint.config.js"
10+
],
11+
"exclude": [
12+
"dist",
13+
"_release"
14+
]
815
}

0 commit comments

Comments
 (0)