Skip to content

Commit

Permalink
chore: Remove Vite aliases and tsconfig composite (#5247)
Browse files Browse the repository at this point in the history
* Remove vite aliases

* Slight tweak to workflows

* Remove composite option
  • Loading branch information
lachlancollins committed Jan 1, 2024
1 parent d17a62b commit 6906b87
Show file tree
Hide file tree
Showing 96 changed files with 13 additions and 356 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -23,7 +23,8 @@ jobs:
if: github.repository == 'TanStack/table'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Setup pnpm
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr.yml
Expand Up @@ -17,7 +17,7 @@ env:

jobs:
test:
name: 'Test'
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -33,9 +33,9 @@ jobs:
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Get appropriate base and head commits for `nx affected` commands
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline
- name: Get base and head commits for `nx affected`
uses: nrwl/nx-set-shas@v3
with:
main-branch-name: 'main'
Expand Down
1 change: 0 additions & 1 deletion examples/react/basic/tsconfig.dev.json
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./build/types"
},
"files": ["src/main.tsx"],
Expand Down
8 changes: 0 additions & 8 deletions examples/react/basic/vite.config.js
@@ -1,4 +1,3 @@
import * as path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import rollupReplace from '@rollup/plugin-replace'
Expand All @@ -15,11 +14,4 @@ export default defineConfig({
}),
react(),
],
resolve: process.env.USE_SOURCE
? {
alias: {
'react-table': path.resolve(__dirname, '../../../src/index.ts'),
},
}
: {},
})
1 change: 0 additions & 1 deletion examples/react/bootstrap/tsconfig.dev.json
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./build/types"
},
"files": ["src/main.tsx"],
Expand Down
8 changes: 0 additions & 8 deletions examples/react/bootstrap/vite.config.js
@@ -1,4 +1,3 @@
import * as path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import rollupReplace from '@rollup/plugin-replace'
Expand All @@ -15,11 +14,4 @@ export default defineConfig({
}),
react(),
],
resolve: process.env.USE_SOURCE
? {
alias: {
'react-table': path.resolve(__dirname, '../../../src/index.ts'),
},
}
: {},
})
1 change: 0 additions & 1 deletion examples/react/column-dnd/tsconfig.dev.json
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./build/types"
},
"files": ["src/main.tsx"],
Expand Down
8 changes: 0 additions & 8 deletions examples/react/column-dnd/vite.config.js
@@ -1,4 +1,3 @@
import * as path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import rollupReplace from '@rollup/plugin-replace'
Expand All @@ -15,11 +14,4 @@ export default defineConfig({
}),
react(),
],
resolve: process.env.USE_SOURCE
? {
alias: {
'react-table': path.resolve(__dirname, '../../../src/index.ts'),
},
}
: {},
})
1 change: 0 additions & 1 deletion examples/react/column-groups/tsconfig.dev.json
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./build/types"
},
"files": ["src/main.tsx"],
Expand Down
8 changes: 0 additions & 8 deletions examples/react/column-groups/vite.config.js
@@ -1,4 +1,3 @@
import * as path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import rollupReplace from '@rollup/plugin-replace'
Expand All @@ -15,11 +14,4 @@ export default defineConfig({
}),
react(),
],
resolve: process.env.USE_SOURCE
? {
alias: {
'react-table': path.resolve(__dirname, '../../../src/index.ts'),
},
}
: {},
})
1 change: 0 additions & 1 deletion examples/react/column-ordering/tsconfig.dev.json
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./build/types"
},
"files": ["src/main.tsx"],
Expand Down
8 changes: 0 additions & 8 deletions examples/react/column-ordering/vite.config.js
@@ -1,4 +1,3 @@
import * as path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import rollupReplace from '@rollup/plugin-replace'
Expand All @@ -15,11 +14,4 @@ export default defineConfig({
}),
react(),
],
resolve: process.env.USE_SOURCE
? {
alias: {
'react-table': path.resolve(__dirname, '../../../src/index.ts'),
},
}
: {},
})
1 change: 0 additions & 1 deletion examples/react/column-pinning/tsconfig.dev.json
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./build/types"
},
"files": ["src/main.tsx"],
Expand Down
8 changes: 0 additions & 8 deletions examples/react/column-pinning/vite.config.js
@@ -1,4 +1,3 @@
import * as path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import rollupReplace from '@rollup/plugin-replace'
Expand All @@ -15,11 +14,4 @@ export default defineConfig({
}),
react(),
],
resolve: process.env.USE_SOURCE
? {
alias: {
'react-table': path.resolve(__dirname, '../../../src/index.ts'),
},
}
: {},
})
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./build/types"
},
"files": ["src/main.tsx"],
Expand Down
8 changes: 0 additions & 8 deletions examples/react/column-resizing-performant/vite.config.js
@@ -1,4 +1,3 @@
import * as path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import rollupReplace from '@rollup/plugin-replace'
Expand All @@ -15,11 +14,4 @@ export default defineConfig({
}),
react(),
],
resolve: process.env.USE_SOURCE
? {
alias: {
'react-table': path.resolve(__dirname, '../../../src/index.ts'),
},
}
: {},
})
1 change: 0 additions & 1 deletion examples/react/column-sizing/tsconfig.dev.json
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./build/types"
},
"files": ["src/main.tsx"],
Expand Down
8 changes: 0 additions & 8 deletions examples/react/column-sizing/vite.config.js
@@ -1,4 +1,3 @@
import * as path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import rollupReplace from '@rollup/plugin-replace'
Expand All @@ -15,11 +14,4 @@ export default defineConfig({
}),
react(),
],
resolve: process.env.USE_SOURCE
? {
alias: {
'react-table': path.resolve(__dirname, '../../../src/index.ts'),
},
}
: {},
})
1 change: 0 additions & 1 deletion examples/react/column-visibility/tsconfig.dev.json
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./build/types"
},
"files": ["src/main.tsx"],
Expand Down
8 changes: 0 additions & 8 deletions examples/react/column-visibility/vite.config.js
@@ -1,4 +1,3 @@
import * as path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import rollupReplace from '@rollup/plugin-replace'
Expand All @@ -15,11 +14,4 @@ export default defineConfig({
}),
react(),
],
resolve: process.env.USE_SOURCE
? {
alias: {
'react-table': path.resolve(__dirname, '../../../src/index.ts'),
},
}
: {},
})
1 change: 0 additions & 1 deletion examples/react/editable-data/tsconfig.dev.json
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./build/types"
},
"files": ["src/main.tsx"],
Expand Down
8 changes: 0 additions & 8 deletions examples/react/editable-data/vite.config.js
@@ -1,4 +1,3 @@
import * as path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import rollupReplace from '@rollup/plugin-replace'
Expand All @@ -15,11 +14,4 @@ export default defineConfig({
}),
react(),
],
resolve: process.env.USE_SOURCE
? {
alias: {
'react-table': path.resolve(__dirname, '../../../src/index.ts'),
},
}
: {},
})
1 change: 0 additions & 1 deletion examples/react/expanding/tsconfig.dev.json
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./build/types"
},
"files": ["src/main.tsx"],
Expand Down
8 changes: 0 additions & 8 deletions examples/react/expanding/vite.config.js
@@ -1,4 +1,3 @@
import * as path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import rollupReplace from '@rollup/plugin-replace'
Expand All @@ -15,11 +14,4 @@ export default defineConfig({
}),
react(),
],
resolve: process.env.USE_SOURCE
? {
alias: {
'react-table': path.resolve(__dirname, '../../../src/index.ts'),
},
}
: {},
})
1 change: 0 additions & 1 deletion examples/react/filters/tsconfig.dev.json
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./build/types"
},
"files": ["src/main.tsx"],
Expand Down
8 changes: 0 additions & 8 deletions examples/react/filters/vite.config.js
@@ -1,4 +1,3 @@
import * as path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import rollupReplace from '@rollup/plugin-replace'
Expand All @@ -15,11 +14,4 @@ export default defineConfig({
}),
react(),
],
resolve: process.env.USE_SOURCE
? {
alias: {
'react-table': path.resolve(__dirname, '../../../src/index.ts'),
},
}
: {},
})
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./build/types"
},
"files": ["src/main.tsx"],
Expand Down
8 changes: 0 additions & 8 deletions examples/react/full-width-resizable-table/vite.config.js
@@ -1,4 +1,3 @@
import * as path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import rollupReplace from '@rollup/plugin-replace'
Expand All @@ -15,11 +14,4 @@ export default defineConfig({
}),
react(),
],
resolve: process.env.USE_SOURCE
? {
alias: {
'react-table': path.resolve(__dirname, '../../../src/index.ts'),
},
}
: {},
})
1 change: 0 additions & 1 deletion examples/react/full-width-table/tsconfig.dev.json
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./build/types"
},
"files": ["src/main.tsx"],
Expand Down
8 changes: 0 additions & 8 deletions examples/react/full-width-table/vite.config.js
@@ -1,4 +1,3 @@
import * as path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import rollupReplace from '@rollup/plugin-replace'
Expand All @@ -15,11 +14,4 @@ export default defineConfig({
}),
react(),
],
resolve: process.env.USE_SOURCE
? {
alias: {
'react-table': path.resolve(__dirname, '../../../src/index.ts'),
},
}
: {},
})
1 change: 0 additions & 1 deletion examples/react/fully-controlled/tsconfig.dev.json
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./build/types"
},
"files": ["src/main.tsx"],
Expand Down

0 comments on commit 6906b87

Please sign in to comment.