Skip to content

Commit 161e830

Browse files
authored
remove :ts scripts, update pnpm (anza-xyz#762)
* remove :ts scripts * always use pnpm run ... * update pnpm to v8
1 parent 01c6316 commit 161e830

5 files changed

Lines changed: 5099 additions & 5054 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: pnpm install --frozen-lockfile
5353

5454
- name: Build packages
55-
run: pnpm build:clean
55+
run: pnpm run build
5656

5757
- name: Run tests
5858
run: pnpm test

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
id: install-pnpm
2424
uses: pnpm/action-setup@v2
2525
with:
26-
version: 7
26+
version: 8
2727
run_install: false
2828

2929
- name: Install Node.js
@@ -56,7 +56,7 @@ jobs:
5656
id: changesets
5757
uses: changesets/action@v1
5858
with:
59-
publish: pnpm release
59+
publish: pnpm run release
6060
env:
6161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6262
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

BUILD.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ corepack prepare pnpm@`npm info pnpm --json | jq -r .version` --activate
1313

1414
Corepack requires a version to enable, so if you don't have [jq](https://stedolan.github.io/jq/) installed, you can [install it](https://formulae.brew.sh/formula/jq), or just manually get the current version of pnpm with `npm info pnpm` and use it like this:
1515
```shell
16-
corepack prepare pnpm@7.13.4 --activate
16+
corepack prepare pnpm@8.1.0 --activate
1717
```
1818

1919
### 1. Clone the project:
@@ -29,7 +29,7 @@ pnpm install
2929

3030
### 3. Build all packages:
3131
```shell
32-
pnpm run build:ts
32+
pnpm run build
3333
```
3434
Please be patient! This may take a while the first time you do it. Subsequent builds will be incremental and are quite fast.
3535

@@ -38,6 +38,6 @@ You can also use `pnpm watch` to run incremental builds when source files change
3838
### 4. Run locally:
3939
```shell
4040
cd packages/starter/react-ui-starter
41-
pnpm start
41+
pnpm run start
4242
open http://localhost:1234
4343
```

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@
1414
"nuke": "shx rm -rf packages/*/*/node_modules node_modules pnpm-lock.yaml || true",
1515
"reinstall": "pnpm run nuke && pnpm install",
1616
"clean": "pnpm --recursive --workspace-concurrency=0 run clean && shx rm -rf **/*.tsbuildinfo",
17-
"ts": "pnpm run build:ts",
1817
"build": "turbo run build --concurrency=100%",
1918
"build:clean": "pnpm run clean && pnpm run build",
2019
"release": "pnpm run build:clean && pnpm test && changeset publish && git push --follow-tags && git status",
21-
"watch": "pnpm run watch:ts",
22-
"watch:ts": "tsc --build --verbose --watch tsconfig.all.json",
20+
"watch": "tsc --build --verbose --watch tsconfig.all.json",
2321
"fmt": "prettier --write '{*,**/*}.{ts,tsx,js,jsx,json}'",
2422
"lint": "turbo run lint --concurrency=100%",
2523
"lint:fix": "pnpm run fmt && eslint --fix .",
@@ -42,7 +40,7 @@
4240
"eslint-plugin-react-hooks": "^4.6.0",
4341
"eslint-plugin-require-extensions": "^0.1.2",
4442
"gh-pages": "^4.0.0",
45-
"pnpm": "^7.27.1",
43+
"pnpm": "^8.1.0",
4644
"prettier": "^2.8.4",
4745
"shx": "^0.3.4",
4846
"turbo": "^1.8.2",

0 commit comments

Comments
 (0)