Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Jul 6, 2023
1 parent 7bb6d37 commit c9a7364
Show file tree
Hide file tree
Showing 4 changed files with 372 additions and 558 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"scripts": {
"clean-dist": "pnpm -rc --parallel exec 'rm -rf build dist'",
"clean-all": "pnpm -rc --parallel exec 'rm -rf build dist node_modules'",
"test": "(is-ci && pnpm test:ci) || pnpm test:dev",
"test:ci": "vitest run",
"test:dev": "vitest watch",
"test": "is-ci-cli test:ci test:dev",
"test:ci": "pnpm --parallel test",
"test:dev": "vitest",
"buildNx": "nx run-many --target=build --projects=@tanstack/* --exclude=@tanstack/react-start",
"build": "rollup --config rollup.config.js && pnpm typecheck",
"watch": "concurrently --no-color --prefix \"watch\" --kill-others --raw \"rollup --config rollup.config.js -w\" \"tsc -b --watch --preserveWatchOutput\"",
Expand Down Expand Up @@ -91,8 +91,8 @@
"@types/fs-extra": "^9.0.13",
"fs-extra": "^10.1.0",
"is-ci-cli": "^2.2.0",
"vite": "^4.1.1",
"vitest": "^0.26.2",
"vite": "^4.4.1",
"vitest": "^0.33.0",
"zod": "^3.20.2"
}
}
2 changes: 1 addition & 1 deletion packages/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"build": "rollup --config rollup.config.js",
"test": "vitest",
"testDev": "vitest --watch"
"test:dev": "vitest --watch"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
Expand Down
11 changes: 9 additions & 2 deletions packages/router/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@ export default defineConfig({
test: {
name: 'router',
watch: false,
// deps: {
// interopDefault: true,
// inline: true,
// },
},
resolve: {
alias: {
'@tanstack/react-store': resolve(__dirname, '..', 'react-store', 'src'),
'@tanstack/store': resolve(__dirname, '..', 'store', 'src'),
'@tanstack/react-store': resolve(
__dirname,
'../react-store/build/esm/index.js',
),
'@tanstack/store': resolve(__dirname, '../store/build/esm/index.js'),
},
},
})

0 comments on commit c9a7364

Please sign in to comment.