Skip to content

Commit

Permalink
run cross-project tasks with pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
sndrs committed Apr 30, 2024
1 parent 9d9a0be commit 544dedb
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 8 deletions.
121 changes: 113 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@
"private": "true",
"type": "module",
"scripts": {
"build": "./tools/scripts/use-make-instead",
"build": "wireit",
"build:storybooks": "wireit",
"dev": "wireit",
"e2e": "wireit",
"fix": "wireit",
"format": "wireit",
"format:check": "wireit",
"lint": "wireit",
"prepare": "husky",
"test": "./tools/scripts/use-make-instead"
"storybooks": "wireit",
"test": "wireit",
"validate": "wireit",
"verify-dist": "wireit"
},
"devDependencies": {
"@babel/core": "7.24.0",
Expand Down Expand Up @@ -58,10 +68,17 @@
"tsconfig-paths-webpack-plugin": "4.1.0",
"typescript": "5.3.3",
"update-section": "0.3.3",
"webpack": "5.91.0"
"webpack": "5.91.0",
"wireit": "0.14.4"
},
"packageManager": "pnpm@8.14.0",
"pnpm": {
"overrides": {
"axios@^1.0.0": "1.6.7",
"semver@^5.0.0": "5.7.2",
"semver@^6.0.0": "6.3.1",
"semver@^7.0.0": "7.5.4"
},
"peerDependencyRules": {
"ignoreMissing": [
"@types/node",
Expand All @@ -76,12 +93,100 @@
"react",
"react-dom"
]
}
},
"wireit": {
"build": {
"command": "pnpm -r build",
"dependencies": [
"checkEnv"
]
},
"overrides": {
"axios@^1.0.0": "1.6.7",
"semver@^5.0.0": "5.7.2",
"semver@^6.0.0": "6.3.1",
"semver@^7.0.0": "7.5.4"
"build:storybooks": {
"command": "pnpm -r build-storybook",
"dependencies": [
"checkEnv"
]
},
"checkEnv": {
"//": "Make sure the environment is set up correctly",
"dependencies": [
"checkNodeVersion",
"install"
]
},
"checkNodeVersion": {
"//": "Make sure we're using the right node version",
"command": "./tools/scripts/check-node-version"
},
"dev": {
"command": "pnpm -r --parallel dev",
"dependencies": [
"checkEnv"
]
},
"e2e": {
"command": "pnpm -r e2e",
"dependencies": [
"checkEnv"
]
},
"fix": {
"command": "pnpm -r fix && pnpm format",
"dependencies": [
"checkEnv"
]
},
"format": {
"command": "prettier --ignore-unknown --cache --write .",
"dependencies": [
"checkEnv"
]
},
"format:check": {
"command": "prettier --ignore-unknown --cache --check .",
"dependencies": [
"checkEnv"
]
},
"install": {
"//": "Install deps if lockfile/workspace has changed",
"command": "pnpm i --frozen-lockfile",
"files": [
"pnpm-lock.yaml",
"pnpm-workspace.yaml"
],
"output": []
},
"lint": {
"command": "pnpm -r lint && node ./tools/scripts/check-packages-for-tslib.mjs",
"dependencies": [
"checkEnv"
]
},
"storybooks": {
"command": "pnpm --filter=storybooks dev",
"dependencies": [
"checkEnv"
]
},
"test": {
"command": "pnpm -r test",
"dependencies": [
"checkEnv"
]
},
"validate": {
"command": "pnpm '/lint|test|e2e|build|verify-dist|build:storybooks/'",
"dependencies": [
"checkEnv"
]
},
"verify-dist": {
"command": "pnpm -r verify-dist",
"dependencies": [
"checkEnv"
]
}
}
}
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 544dedb

Please sign in to comment.