Skip to content

Commit 51a6fd7

Browse files
authoredDec 28, 2023
chore: Migrate to pnpm and modularise Nx tasks (#5234)
* Prepare to run pnpm import * Run pnpm import * Update github workflow * Remove lerna * Use workspace links * More workflow tweaks * Re-sync lockfile * Delete lerna.json * Make typecheck work * Fix test:ci * Delete yarn.lock * Update gitignore * Split up vitest command * Add preinstall, tweak watch script * Fix pr command * Fix react-table tests * Merge build-js and build * Add vitest alias * Add rimraf * Fix task ordering * Fix ts errors in rollup config * Actually fix test ordering * Fix publish script * Delete unused root vitest config
1 parent f7b7a8e commit 51a6fd7

32 files changed

+9919
-9861
lines changed
 

‎.github/workflows/ci.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,20 @@ jobs:
1212
- uses: actions/checkout@v2
1313
with:
1414
fetch-depth: '0'
15-
- uses: actions/setup-node@v2
15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v2
1617
with:
17-
node-version: 16
18-
registry-url: https://registry.npmjs.org/
19-
cache: 'npm'
18+
version: 8
19+
- name: Setup Node
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version-file: .nvmrc
23+
cache: pnpm
2024
- run: |
21-
npm i --legacy-peer-deps
25+
pnpm install --frozen-lockfile
2226
git config --global user.name 'Tanner Linsley'
2327
git config --global user.email 'tannerlinsley@users.noreply.github.com'
24-
npm run cipublish
28+
pnpm run cipublish
2529
env:
2630
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
2731
GH_TOKEN: ${{ secrets.GH_TOKEN }}

‎.github/workflows/pr.yml

+10-13
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,21 @@ name: pr
22
on: [pull_request]
33
jobs:
44
test:
5-
name: 'Test (node ${{ matrix.node }})'
5+
name: 'Test'
66
runs-on: ubuntu-latest
7-
strategy:
8-
matrix:
9-
node: [16]
10-
117
steps:
128
- name: Checkout
139
uses: actions/checkout@v2
14-
15-
- name: Install Node.js
10+
- name: Setup pnpm
11+
uses: pnpm/action-setup@v2
12+
with:
13+
version: 8
14+
- name: Setup Node
1615
uses: actions/setup-node@v3
1716
with:
18-
node-version: ${{ matrix.node }}
19-
cache: 'yarn'
20-
17+
node-version-file: .nvmrc
18+
cache: pnpm
2119
- name: Install Dependencies
22-
run: yarn --frozen-lockfile
23-
20+
run: pnpm install --frozen-lockfile
2421
- name: Run Checks
25-
run: npm run pr
22+
run: pnpm run pr

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ node_modules
4141
dist
4242

4343
package-lock.json
44+
yarn.lock
4445
*.tsbuildinfo
4546
*.tsbuildinfo
4647

‎.npmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
package-lock=false
1+
prefer-workspace-packages=true

‎CONTRIBUTING.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,15 @@ Before proceeding with development, ensure you match one of the following criter
2828
## Development Workflow
2929

3030
- Fork this repository, we prefer the `feat-*` branch name style
31-
- Ensure you have `yarn` installed
32-
- Install projects dependencies and linkages by running `yarn`
33-
- Auto-build and auto-test files as you edit by running `yarn dev`
31+
- Ensure you have `pnpm` installed
32+
- Install projects dependencies and linkages by running `pnpm install`
33+
- Auto-build and auto-test files as you edit by running `pnpm dev`
3434
- Implement your changes and tests
3535
- To run examples, follow their individual directions. Usually this includes:
36-
- Installing dependencies with `yarn`
37-
- Starting the dev server with `yarn start`
36+
- Installing dependencies with `pnpm install`
37+
- Starting the dev server with `pnpm start`
3838
- To test in your own projects:
39-
- Build/watch for changes with `yarn build`/`yarn dev`
40-
- Link the appropriate package eg. `yarn link @tanstack/react-table`
39+
- Build/watch for changes with `pnpm build`/`pnpm dev`
4140
- Document your changes in the appropriate documentation website markdown pages
4241
- Commit your work and open a pull request
4342
- Submit PR for review

‎examples/react/kitchen-sink/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"@emotion/styled": "^11.10.5",
1414
"@tanstack/match-sorter-utils": "8.7.6",
1515
"@tanstack/react-table": "8.11.2",
16-
"@types/react": "^18.0.25",
17-
"@types/react-dom": "^18.0.9",
16+
"@types/react": "^18.2.45",
17+
"@types/react-dom": "^18.2.18",
1818
"react": "^18.2.0",
1919
"react-dom": "^18.2.0"
2020
},

‎lerna.json

-6
This file was deleted.

‎nx.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@
2323
"inputs": ["buildDeps", "^buildDeps"],
2424
"cache": true
2525
},
26-
"build-js": {
26+
"test:lib": {
2727
"cache": true
2828
},
29-
"test:ci": {
30-
"cache": true
31-
},
32-
"typecheck": {
29+
"test:types": {
30+
"dependsOn": ["^test:types"],
3331
"cache": true
3432
}
3533
}

‎old-examples/absolute-layout/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo
33
You can:
44

55
- [Open this example in a new CodeSandbox](https://codesandbox.io/s/github/tanstack/react-table/tree/master/examples/absolute-layout)
6-
- `yarn` and `yarn start` to run and edit the example
6+
- `pnpm` and `pnpm start` to run and edit the example

‎package.json

+21-70
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,29 @@
11
{
2+
"name": "table",
23
"private": true,
34
"repository": "https://github.com/tanstack/table.git",
5+
"packageManager": "pnpm@8.12.1",
46
"scripts": {
5-
"clean": "npm exec --workspaces -c \"rm -rf build || true\"",
6-
"test": "(is-ci && npm run test:ci) || npm run test:dev",
7-
"test:ci": "nx test:ci root",
8-
"test:dev": "vitest --watch",
7+
"clean": "pnpm --filter \"./packages/**\" run clean",
8+
"preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...'); process.exit(1)}\" || npx -y only-allow pnpm",
9+
"test": "(is-ci && pnpm run test:lib) || pnpm run test:lib:dev",
10+
"test:lib": "nx run-many -t test:lib",
11+
"test:lib:dev": "pnpm test:lib && nx watch --all -- pnpm test:lib",
12+
"test:types": "nx run-many -t test:types",
913
"build": "nx build root",
1014
"watch": "concurrently --kill-others \"rollup --config rollup.config.js -w\" \"tsc -b --watch\"",
11-
"linkAll": "lerna exec 'npm link' --parallel",
12-
"unlinkAll": "lerna exec 'npm unlink' --parallel",
13-
"dev": "npm run watch",
15+
"dev": "pnpm run watch",
1416
"prettier": "prettier \"packages/*/{src/**,examples/**/src/**}.{md,js,jsx,ts,tsx,json}\" --write",
15-
"visualize": "lerna exec 'open build/stats-html.html'",
1617
"cipublish": "ts-node scripts/publish.ts",
17-
"cipublishforce": "CI=true npm run cipublish",
18-
"typecheck": "nx typecheck root",
19-
"pr": "nx run-many --targets=test:ci,build,typecheck --projects=root"
18+
"cipublishforce": "CI=true pnpm run cipublish",
19+
"pr": "nx run-many --exclude=examples/** --targets=test:lib,build,test:types"
20+
},
21+
"nx": {
22+
"includedScripts": [
23+
"build"
24+
]
2025
},
2126
"namespace": "@tanstack",
22-
"workspaces": [
23-
"./examples/react/basic",
24-
"./examples/react/bootstrap",
25-
"./examples/react/column-dnd",
26-
"./examples/react/column-groups",
27-
"./examples/react/column-ordering",
28-
"./examples/react/column-pinning",
29-
"./examples/react/column-resizing-performant",
30-
"./examples/react/column-sizing",
31-
"./examples/react/column-visibility",
32-
"./examples/react/editable-data",
33-
"./examples/react/expanding",
34-
"./examples/react/filters",
35-
"./examples/react/full-width-resizable-table",
36-
"./examples/react/full-width-table",
37-
"./examples/react/fully-controlled",
38-
"./examples/react/grouping",
39-
"./examples/react/kitchen-sink",
40-
"./examples/react/material-ui-pagination",
41-
"./examples/react/pagination",
42-
"./examples/react/pagination-controlled",
43-
"./examples/react/row-dnd",
44-
"./examples/react/row-pinning",
45-
"./examples/react/row-selection",
46-
"./examples/react/sorting",
47-
"./examples/react/sub-components",
48-
"./examples/react/virtualized-infinite-scrolling",
49-
"./examples/react/virtualized-rows",
50-
"./examples/solid/basic",
51-
"./examples/solid/bootstrap",
52-
"./examples/solid/column-groups",
53-
"./examples/solid/column-ordering",
54-
"./examples/solid/column-visibility",
55-
"./examples/solid/sorting",
56-
"./examples/svelte/basic",
57-
"./examples/svelte/column-groups",
58-
"./examples/svelte/column-ordering",
59-
"./examples/svelte/column-pinning",
60-
"./examples/svelte/column-visibility",
61-
"./examples/svelte/sorting",
62-
"./examples/vue/basic",
63-
"./examples/vue/column-ordering",
64-
"./examples/vue/column-pinning",
65-
"./examples/vue/sorting",
66-
"./examples/vue/pagination-controlled",
67-
"./examples/vue/pagination",
68-
"./packages/match-sorter-utils",
69-
"./packages/react-table",
70-
"./packages/react-table-devtools",
71-
"./packages/solid-table",
72-
"./packages/svelte-table",
73-
"./packages/table-core",
74-
"./packages/vue-table"
75-
],
7627
"devDependencies": {
7728
"@babel/core": "^7.17.9",
7829
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
@@ -90,21 +41,21 @@
9041
"@tsconfig/svelte": "^3.0.0",
9142
"@types/luxon": "^2.3.1",
9243
"@types/node": "^18.15.10",
93-
"@types/react": "^18.0.14",
94-
"@types/react-dom": "^18.0.5",
44+
"@types/react": "^18.2.45",
45+
"@types/react-dom": "^18.2.18",
9546
"@types/semver": "^7.3.10",
9647
"axios": "^0.26.1",
9748
"babel-plugin-transform-async-to-promises": "^0.8.18",
9849
"concurrently": "^7.1.0",
9950
"current-git-branch": "^1.1.0",
10051
"git-log-parser": "^1.2.0",
10152
"jsdom": "^21.1.1",
102-
"lerna": "^4.0.0",
10353
"luxon": "^2.3.2",
10454
"nx": "^17.2.7",
10555
"prettier": "^3.0.3",
106-
"react": "^17.0.2",
107-
"react-dom": "^17.0.2",
56+
"react": "^18.2.0",
57+
"react-dom": "^18.2.0",
58+
"rimraf": "^5.0.5",
10859
"rollup": "^2.70.2",
10960
"rollup-plugin-dts": "^4.2.2",
11061
"rollup-plugin-size": "^0.2.2",

‎packages/match-sorter-utils/package.json

+6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@
4848
"build/umd/*",
4949
"src"
5050
],
51+
"scripts": {
52+
"clean": "rimraf ./build",
53+
"test:types": "tsc",
54+
"test:lib": "vitest",
55+
"test:lib:dev": "pnpm test:lib --watch"
56+
},
5157
"dependencies": {
5258
"remove-accents": "0.4.2"
5359
}
File renamed without changes.

‎vitest.config.ts renamed to ‎packages/match-sorter-utils/vitest.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export default defineConfig({
66
setupFiles: ['test-setup.ts'],
77
environment: 'jsdom',
88
globals: true,
9-
dir: 'packages'
10-
}
9+
dir: '__tests__',
10+
},
1111
})

‎packages/react-table-devtools/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,15 @@
4242
"build/umd/*",
4343
"src"
4444
],
45+
"scripts": {
46+
"clean": "rimraf ./build",
47+
"test:types": "tsc"
48+
},
4549
"peerDependencies": {
4650
"react": ">=16",
4751
"react-dom": ">=16"
4852
},
4953
"dependencies": {
50-
"@tanstack/react-table": "8.0.0-alpha.1"
54+
"@tanstack/react-table": "workspace:*"
5155
}
5256
}

‎packages/react-table/__tests__/core/core.test.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import * as React from 'react'
22

33
import { act, renderHook } from '@testing-library/react-hooks'
44
import * as RTL from '@testing-library/react'
5-
import '@testing-library/jest-dom'
65
import {
76
useReactTable,
87
getCoreRowModel,
98
ColumnDef,
109
flexRender,
11-
} from '@tanstack/react-table'
10+
} from '../../src'
1211

1312
type Person = {
1413
firstName: string

‎packages/react-table/__tests__/features/RowSelection.test.tsx

+11-12
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
getCoreRowModel,
55
TableOptions,
66
useReactTable,
7-
} from '@tanstack/react-table'
7+
} from '../../src'
88
import { fireEvent, render, screen } from '@testing-library/react'
99
import React, { FC } from 'react'
1010

@@ -82,15 +82,15 @@ const defaultPaginatedColumns: ColumnDef<Person>[] = [
8282
)
8383
},
8484
cell: ({ row }) => {
85-
return ( row.getCanSelect() ? (
85+
return row.getCanSelect() ? (
8686
<input
8787
data-testid="select-single"
8888
type="checkbox"
8989
disabled={row.getCanSelect()}
9090
checked={row.getIsSelected()}
9191
onChange={row.getToggleSelectedHandler()}
9292
/>
93-
):null)
93+
) : null
9494
},
9595
},
9696
{
@@ -166,20 +166,19 @@ test(`Select all do not select rows which are not available for selection`, () =
166166
expect(title).not.toBePartiallyChecked()
167167
expect(notSelected).not.toBeChecked()
168168
expect(selected).not.toBeChecked()
169-
170169
})
171170

172171
// issue #4757
173172
test(`Select all is unchecked for current page if all rows are not available for selection`, () => {
174-
let condition = row => row.original.age > 50;
173+
let condition = row => row.original.age > 50
175174

176-
const {rerender} = render(
175+
const { rerender } = render(
177176
<TableComponent
178177
options={{
179178
columns: defaultPaginatedColumns,
180179
data: defaultData,
181-
enableRowSelection: condition
182-
}}
180+
enableRowSelection: condition,
181+
}}
183182
/>
184183
)
185184

@@ -188,12 +187,13 @@ test(`Select all is unchecked for current page if all rows are not available for
188187
expect(selectedOnPage).not.toBeChecked()
189188
expect(selectedOnPage).not.toHaveAttribute('aria-checked', 'mixed')
190189

191-
condition = row => row.original.age > 40;
192-
rerender(<TableComponent
190+
condition = row => row.original.age > 40
191+
rerender(
192+
<TableComponent
193193
options={{
194194
columns: defaultPaginatedColumns,
195195
data: defaultData,
196-
enableRowSelection: condition
196+
enableRowSelection: condition,
197197
}}
198198
/>
199199
)
@@ -205,7 +205,6 @@ test(`Select all is unchecked for current page if all rows are not available for
205205

206206
fireEvent.click(screen.queryByTestId('select-single'))
207207
expect(selectedOnPage).toBeChecked()
208-
209208
})
210209

211210
test(`Select all when all rows are available for selection`, () => {

‎packages/react-table/__tests__/features/Visibility.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
getCoreRowModel,
99
ColumnDef,
1010
flexRender,
11-
} from '@tanstack/react-table'
11+
} from '../../src'
1212

1313
type Person = {
1414
firstName: string

‎packages/react-table/package.json

+13-1
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,20 @@
4242
"build/umd/*",
4343
"src"
4444
],
45+
"scripts": {
46+
"clean": "rimraf ./build",
47+
"test:types": "tsc",
48+
"test:lib": "vitest",
49+
"test:lib:dev": "pnpm test:lib --watch"
50+
},
4551
"dependencies": {
46-
"@tanstack/table-core": "8.11.2"
52+
"@tanstack/table-core": "workspace:*"
53+
},
54+
"devDependencies": {
55+
"@types/react": "^18.2.45",
56+
"@types/react-dom": "^18.2.18",
57+
"react": "^18.2.0",
58+
"react-dom": "^18.2.0"
4759
},
4860
"peerDependencies": {
4961
"react": ">=16",

‎packages/react-table/test-setup.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom'

‎packages/react-table/vitest.config.ts

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { defineConfig } from 'vitest/config'
2+
import { resolve } from 'node:path'
3+
4+
export default defineConfig({
5+
test: {
6+
watch: false,
7+
setupFiles: ['test-setup.ts'],
8+
environment: 'jsdom',
9+
globals: true,
10+
dir: '__tests__',
11+
},
12+
resolve: {
13+
alias: {
14+
'@tanstack/table-core': resolve(__dirname, '../table-core/src'),
15+
},
16+
},
17+
})

‎packages/solid-table/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,12 @@
4343
"build/umd/*",
4444
"src"
4545
],
46+
"scripts": {
47+
"clean": "rimraf ./build",
48+
"test:types": "tsc"
49+
},
4650
"dependencies": {
47-
"@tanstack/table-core": "8.11.2"
51+
"@tanstack/table-core": "workspace:*"
4852
},
4953
"peerDependencies": {
5054
"solid-js": "^1.3.13"

‎packages/svelte-table/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@
4141
"build/umd/*",
4242
"src"
4343
],
44+
"scripts": {
45+
"clean": "rimraf ./build",
46+
"test:types": "tsc"
47+
},
4448
"dependencies": {
45-
"@tanstack/table-core": "8.11.2"
49+
"@tanstack/table-core": "workspace:*"
4650
},
4751
"peerDependencies": {
4852
"svelte": "^4.0.0 || ^3.49.0"

‎packages/table-core/package.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,11 @@
4343
"build/lib/*",
4444
"build/umd/*",
4545
"src"
46-
]
46+
],
47+
"scripts": {
48+
"clean": "rimraf ./build",
49+
"test:types": "tsc",
50+
"test:lib": "vitest",
51+
"test:lib:dev": "pnpm test:lib --watch"
52+
}
4753
}

‎packages/table-core/test-setup.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom'

‎packages/table-core/vitest.config.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from 'vitest/config'
2+
3+
export default defineConfig({
4+
test: {
5+
watch: false,
6+
setupFiles: ['test-setup.ts'],
7+
environment: 'jsdom',
8+
globals: true,
9+
dir: '__tests__',
10+
},
11+
})

‎packages/vue-table/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@
4242
"build/umd/*",
4343
"src"
4444
],
45+
"scripts": {
46+
"clean": "rimraf ./build",
47+
"test:types": "tsc"
48+
},
4549
"dependencies": {
46-
"@tanstack/table-core": "8.11.2"
50+
"@tanstack/table-core": "workspace:*"
4751
},
4852
"peerDependencies": {
4953
"vue": "^3.2.33"

‎pnpm-lock.yaml

+9,759
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pnpm-workspace.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
packages:
2+
- 'packages/*'
3+
- 'examples/react/*'
4+
- 'examples/solid/*'
5+
- 'examples/svelte/*'
6+
- 'examples/vue/*'

‎project.json

+1-19
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,13 @@
22
"$schema": "node_modules/nx/schemas/project-schema.json",
33
"name": "root",
44
"targets": {
5-
"build-js": {
5+
"build": {
66
"command": "rollup --config rollup.config.js",
77
"inputs": ["packageSources"],
88
"outputs": [
99
"{workspaceRoot}/packages/*/build/stats*",
1010
"{workspaceRoot}/packages/*/build/**/*.(cjs|mjs|js)*"
1111
]
12-
},
13-
"typecheck": {
14-
"command": "tsc -b",
15-
"inputs": ["packageSources"],
16-
"outputs": [
17-
"{workspaceRoot}/packages/*/build/**/*d.ts",
18-
"{workspaceRoot}/packages/*/build/.tsbuildinfo"
19-
]
20-
},
21-
"build": {
22-
"command": "echo \" @tanstack/table > All packages built! 📦\"",
23-
"dependsOn": ["build-js", "typecheck"],
24-
"inputs": ["packageSources"]
25-
},
26-
"test:ci": {
27-
"command": "vitest",
28-
"inputs": ["packageSources", "{workspaceRoot}/packages/*/__tests__/**/*"],
29-
"dependsOn": ["build-js"]
3012
}
3113
}
3214
}

‎rollup.config.ts

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { RollupOptions } from 'rollup'
22
import babel from '@rollup/plugin-babel'
33
import { terser } from 'rollup-plugin-terser'
4+
// @ts-ignore
45
import size from 'rollup-plugin-size'
56
import visualizer from 'rollup-plugin-visualizer'
67
import replace from '@rollup/plugin-replace'
@@ -133,7 +134,7 @@ function buildConfigs(opts: {
133134
}): RollupOptions[] {
134135
const input = path.resolve(opts.packageDir, opts.entryFile)
135136

136-
const external = moduleName => opts.external.includes(moduleName)
137+
const external = (moduleName: string) => opts.external.includes(moduleName)
137138
const umdExternal = Object.keys(opts.globals)
138139
const banner = createBanner(opts.name)
139140

@@ -153,7 +154,6 @@ function buildConfigs(opts: {
153154
cjs(options),
154155
umdDev({ ...options, external: umdExternal }),
155156
umdProd({ ...options, external: umdExternal }),
156-
// types(options),
157157
]
158158
}
159159

@@ -310,25 +310,6 @@ function umdProd({
310310
}
311311
}
312312

313-
function types({
314-
input,
315-
packageDir,
316-
external,
317-
banner,
318-
}: Options): RollupOptions {
319-
return {
320-
// TYPES
321-
external,
322-
input,
323-
output: {
324-
format: 'es',
325-
file: `${packageDir}/build/types/index.d.ts`,
326-
banner,
327-
},
328-
plugins: [dts()],
329-
}
330-
}
331-
332313
function createBanner(libraryName: string) {
333314
return `/**
334315
* ${libraryName}

‎scripts/publish.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,12 @@ async function run() {
344344
console.info()
345345

346346
console.info('Building packages...')
347-
execSync(`npm run build`, { encoding: 'utf8', stdio: 'inherit' })
347+
execSync(`pnpm build`, { encoding: 'utf8', stdio: 'inherit' })
348348
console.info('')
349349

350-
// console.info('Building types...')
351-
// execSync(`npm run types`, { encoding: 'utf8', stdio: 'inherit' })
352-
// console.info('')
350+
console.info('Building types...')
351+
execSync(`pnpm test:types`, { encoding: 'utf8', stdio: 'inherit' })
352+
console.info('')
353353

354354
console.info('Validating packages...')
355355
const failedValidations: string[] = []
@@ -394,7 +394,7 @@ async function run() {
394394
}
395395

396396
console.info('Testing packages...')
397-
execSync(`npm run test:ci`, { encoding: 'utf8' })
397+
execSync(`npm run test:lib`, { encoding: 'utf8' })
398398
console.info('')
399399

400400
console.info(`Updating all changed packages to version ${version}...`)

‎yarn.lock

-9,682
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.