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

Upgrade to pnpm 10 #171

Merged
merged 4 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions integration-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,12 @@
Create a new file with the `.test.ts` extension in the `tests/` folder. Use `tests/smoke.test.ts` as a reference on how to set up a temporary folder for the project and execute Steiger.

Store your output snapshots in `__snapshots__` with the `-posix.txt` extension. After you wrote your test, run `pnpm update-windows-snapshots` to copy over the changes in snapshots.

## Updating both snapshots

To update snapshots on POSIX and Windows, run the following commands:

```
pnpm run test --update
pnpm update-windows-snapshots
```
10 changes: 5 additions & 5 deletions integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
"@steiger/eslint-config": "workspace:*",
"@steiger/tsconfig": "workspace:*",
"@total-typescript/ts-reset": "^0.6.1",
"@types/node": "^18.11.9",
"eslint": "^9.16.0",
"@types/node": "^18.19.71",
"eslint": "^9.18.0",
"figures": "^6.1.0",
"get-bin-path": "^11.0.0",
"prettier": "^3.4.2",
"tinyexec": "^0.3.1",
"typescript": "^5.7.2",
"vitest": "^3.0.0-beta.2"
"tinyexec": "^0.3.2",
"typescript": "^5.7.3",
"vitest": "^3.0.2"
},
"dependencies": {
"steiger": "workspace:*"
Expand Down
16 changes: 8 additions & 8 deletions integration-tests/tests/__snapshots__/smoke-stderr-posix.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,43 @@
┌ src/entities/user/api/getUser.ts
✘ Forbidden import from higher layer "app".
└ fsd/forbidden-imports (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/forbidden-imports​)
└ fsd/forbidden-imports: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/forbidden-imports

┌ src/entities
✘ Inconsistent pluralization of slice names. Prefer all plural names
✔ Auto-fixable
└ fsd/inconsistent-naming (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/inconsistent-naming​)
└ fsd/inconsistent-naming: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/inconsistent-naming

┌ src/entities/user
✘ This slice has no references. Consider removing it.
└ fsd/insignificant-slice (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/insignificant-slice​)
└ fsd/insignificant-slice: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/insignificant-slice

┌ src/entities/users
✘ This slice has no references. Consider removing it.
└ fsd/insignificant-slice (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/insignificant-slice​)
└ fsd/insignificant-slice: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/insignificant-slice

┌ src/entities/user/api/getUser.ts
✘ Forbidden sidestep of public API when importing from "@/app/ui/App".
└ fsd/no-public-api-sidestep (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-public-api-sidestep​)
└ fsd/no-public-api-sidestep: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-public-api-sidestep

┌ src/entities/user/ui/api
✘ Having a folder with the name "api" inside a segment could be confusing because that name is commonly used for segments. Consider renaming it.
└ fsd/no-reserved-folder-names (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-reserved-folder-names​)
└ fsd/no-reserved-folder-names: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-reserved-folder-names

┌ src/app/ui
✘ Layer "app" should not have "ui" segment.
└ fsd/no-ui-in-app (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-ui-in-app​)
└ fsd/no-ui-in-app: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-ui-in-app

┌ src/processes
✘ Layer "processes" is deprecated, avoid using it
└ fsd/no-processes (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-processes​)
└ fsd/no-processes: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-processes

────────────────────────────────────────────────────────
Found 8 errors (1 can be fixed automatically with --fix)
Expand Down
16 changes: 8 additions & 8 deletions integration-tests/tests/__snapshots__/smoke-stderr-windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,43 @@
┌ src\entities\user\api\getUser.ts
× Forbidden import from higher layer "app".
└ fsd/forbidden-imports (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/forbidden-imports​)
└ fsd/forbidden-imports: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/forbidden-imports

┌ src\entities
× Inconsistent pluralization of slice names. Prefer all plural names
√ Auto-fixable
└ fsd/inconsistent-naming (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/inconsistent-naming​)
└ fsd/inconsistent-naming: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/inconsistent-naming

┌ src\entities\user
× This slice has no references. Consider removing it.
└ fsd/insignificant-slice (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/insignificant-slice​)
└ fsd/insignificant-slice: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/insignificant-slice

┌ src\entities\users
× This slice has no references. Consider removing it.
└ fsd/insignificant-slice (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/insignificant-slice​)
└ fsd/insignificant-slice: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/insignificant-slice

┌ src\entities\user\api\getUser.ts
× Forbidden sidestep of public API when importing from "@/app/ui/App".
└ fsd/no-public-api-sidestep (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-public-api-sidestep​)
└ fsd/no-public-api-sidestep: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-public-api-sidestep

┌ src\entities\user\ui\api
× Having a folder with the name "api" inside a segment could be confusing because that name is commonly used for segments. Consider renaming it.
└ fsd/no-reserved-folder-names (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-reserved-folder-names​)
└ fsd/no-reserved-folder-names: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-reserved-folder-names

┌ src\app\ui
× Layer "app" should not have "ui" segment.
└ fsd/no-ui-in-app (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-ui-in-app​)
└ fsd/no-ui-in-app: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-ui-in-app

┌ src\processes
× Layer "processes" is deprecated, avoid using it
└ fsd/no-processes (​https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-processes​)
└ fsd/no-processes: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd/src/no-processes

────────────────────────────────────────────────────────
Found 8 errors (1 can be fixed automatically with --fix)
Expand Down
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@
"engines": {
"node": ">= 18"
},
"packageManager": "[email protected]",
"packageManager": "[email protected]",
"pnpm": {
"onlyBuiltDependencies": [
"esbuild"
]
},
"devDependencies": {
"@changesets/cli": "^2.27.10",
"@changesets/cli": "^2.27.11",
"@manypkg/cli": "^0.23.0",
"@steiger/eslint-config": "workspace:*",
"eslint": "^9.16.0",
"eslint": "^9.18.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"lint-staged": "^15.4.1",
"prettier": "^3.4.2",
"turbo": "^2.3.3"
},
Expand Down
7 changes: 3 additions & 4 deletions packages/pretty-reporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@
"@steiger/tsconfig": "workspace:*",
"@steiger/types": "workspace:*",
"@total-typescript/ts-reset": "^0.6.1",
"@types/node": "^18.11.9",
"eslint": "^9.16.0",
"@types/node": "^18.19.71",
"eslint": "^9.18.0",
"prettier": "^3.4.2",
"tsx": "^4.19.2",
"typescript": "^5.7.2"
"typescript": "^5.7.3"
},
"dependencies": {
"chalk": "^5.3.0",
"figures": "^6.1.0",
"picocolors": "^1.1.1",
"terminal-link": "^3.0.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/steiger-plugin-fsd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@types/lodash-es": "^4.17.12",
"@types/pluralize": "^0.0.33",
"tsup": "^8.3.5",
"typescript": "^5.7.2",
"vitest": "^3.0.0-beta.2"
"typescript": "^5.7.3",
"vitest": "^3.0.2"
}
}
12 changes: 6 additions & 6 deletions packages/steiger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
"README.md"
],
"dependencies": {
"@clack/prompts": "^0.8.2",
"@clack/prompts": "^0.9.1",
"@feature-sliced/steiger-plugin": "workspace:*",
"chokidar": "^4.0.1",
"chokidar": "^4.0.3",
"cosmiconfig": "^9.0.0",
"effector": "^23.2.3",
"empathic": "^1.0.0",
Expand All @@ -55,7 +55,7 @@
"picocolors": "^1.1.1",
"prexit": "^2.3.0",
"yargs": "^17.7.2",
"zod": "^3.24.0",
"zod": "^3.24.1",
"zod-validation-error": "^3.4.0"
},
"devDependencies": {
Expand All @@ -68,10 +68,10 @@
"@types/lodash-es": "^4.17.12",
"@types/micromatch": "^4.0.9",
"@types/yargs": "^17.0.33",
"memfs": "^4.15.0",
"memfs": "^4.17.0",
"tsup": "^8.3.5",
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"vitest": "^3.0.0-beta.2"
"typescript": "^5.7.3",
"vitest": "^3.0.2"
}
}
4 changes: 2 additions & 2 deletions packages/toolkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@steiger/types": "workspace:*",
"@total-typescript/ts-reset": "^0.6.1",
"tsup": "^8.3.5",
"typescript": "^5.7.2",
"vitest": "^3.0.0-beta.2"
"typescript": "^5.7.3",
"vitest": "^3.0.2"
}
}
4 changes: 2 additions & 2 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
],
"devDependencies": {
"@steiger/tsconfig": "workspace:*",
"@types/node": "^18.11.9",
"typescript": "^5.7.2"
"@types/node": "^18.19.71",
"typescript": "^5.7.3"
}
}
Loading
Loading