Skip to content

Commit 4514acf

Browse files
ds300SomeHats
andauthored
Support nested workspaces (#55)
* project-resolution Co-authored-by: alex <[email protected]> * refactor for testability * reinstate bin * rename workspace.js to Project * test running in package dirs * fix deps * test findRootWorkspace * fix lint * fix formatting.js * fix eslint command * allow skipping package.jsons * remove answered question --------- Co-authored-by: alex <[email protected]>
1 parent 484aadf commit 4514acf

28 files changed

+1181
-1433
lines changed

.eslintrc.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ module.exports = {
2727
rules: {
2828
'no-restricted-imports': 'off',
2929
'@typescript-eslint/no-unsafe-call': 'off',
30+
'@typescript-eslint/no-extra-semi': 'off',
31+
'@typescript-eslint/no-non-null-assertion': 'off',
3032
},
3133
},
3234
],

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
transform: {
3-
'^.+\\.(j|t)s?$': ['esbuild-jest', { sourcemap: true }],
3+
'^.+\\.(j|t)s?$': '@swc/jest',
44
},
55
transformIgnorePatterns: ['ckafojisfew'],
66
modulePathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/.test'],

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"clean": "rm -rf node_modules && pnpm install",
1818
"format": "prettier --write .",
1919
"format:check": "prettier --list-different .",
20-
"lint": "eslint -f compact **/*.{js,ts}",
20+
"lint": "eslint -f compact '**/*.{js,ts}'",
2121
"prepare": "husky install"
2222
},
2323
"packageManager": "pnpm@latest",
@@ -46,7 +46,9 @@
4646
"types": "index.d.ts",
4747
"dependencies": {
4848
"@sindresorhus/slugify": "^2.2.0",
49+
"cac": "^6.7.14",
4950
"cross-spawn": "^7.0.3",
51+
"esbuild": "^0.17.15",
5052
"fast-glob": "^3.2.12",
5153
"fast-json-stable-stringify": "^2.1.0",
5254
"picocolors": "^1.0.0",
@@ -61,6 +63,8 @@
6163
},
6264
"devDependencies": {
6365
"@auto-it/core": "^10.44.0",
66+
"@swc/core": "^1.3.51",
67+
"@swc/jest": "^0.2.26",
6468
"@types/cross-spawn": "^6.0.2",
6569
"@types/jest": "^29.5.0",
6670
"@types/micromatch": "^4.0.2",
@@ -71,14 +75,12 @@
7175
"@typescript-eslint/eslint-plugin": "^5.58.0",
7276
"@typescript-eslint/parser": "^5.58.0",
7377
"auto": "^10.44.0",
74-
"cac": "^6.7.14",
75-
"esbuild": "^0.17.15",
76-
"esbuild-jest": "^0.5.0",
7778
"eslint": "^8.38.0",
7879
"eslint-plugin-jest": "^27.2.1",
7980
"eslint-plugin-n": "^15.7.0",
8081
"husky": "^8.0.0",
8182
"jest": "^29.5.0",
83+
"jest-resolve": "^29.5.0",
8284
"lint-staged": "^13.2.1",
8385
"nanoid": "^4.0.2",
8486
"node-gyp": "^9.3.1",

0 commit comments

Comments
 (0)