Skip to content

Commit

Permalink
feat(babel): remove babel
Browse files Browse the repository at this point in the history
  • Loading branch information
philibea committed Apr 26, 2024
1 parent d3bf5db commit fd7723d
Show file tree
Hide file tree
Showing 10 changed files with 135 additions and 1,616 deletions.
6 changes: 0 additions & 6 deletions babel.config.json

This file was deleted.

4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@
]
},
"devDependencies": {
"@babel/core": "7.24.4",
"@babel/plugin-transform-runtime": "7.24.3",
"@babel/preset-env": "7.24.4",
"@babel/preset-typescript": "7.24.1",
"@commitlint/cli": "18.6.1",
"@commitlint/config-conventional": "18.6.3",
"@scaleway/eslint-config-react": "3.18.1",
Expand Down
4 changes: 3 additions & 1 deletion packages/clients/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"types": "dist/index.d.ts",
"scripts": {
"version": "./scripts/update-constants-file.sh",
"build": "vite build --config ../../vite.config.ts",
"typecheck": "tsc --noEmit",
"type:generate": "tsc --declaration -p tsconfig.build.json",
"build": "vite build --config ../../vite.config.ts && pnpm run type:generate",
"build:profile": "npx vite-bundle-visualizer -c ../../vite.config.ts"
},
"files": [
Expand Down
18 changes: 18 additions & 0 deletions packages/clients/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false,
"emitDeclarationOnly": true,
"rootDir": "src",
"outDir": "dist",
"skipLibCheck": true
},
"exclude": [
"dist/*",
"*.config.ts",
"*.setup.ts",
"**/__tests__",
"**/__mocks__",
"src/**/*.test.tsx"
]
}
4 changes: 4 additions & 0 deletions packages/clients/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "*.config.ts"]
}
4 changes: 3 additions & 1 deletion packages/configuration-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
},
"type": "module",
"scripts": {
"build": "vite build --config ../../vite.config.ts",
"typecheck": "tsc --noEmit",
"type:generate": "tsc --declaration -p tsconfig.build.json",
"build": "vite build --config ../../vite.config.ts && pnpm run type:generate",
"build:profile": "npx vite-bundle-visualizer -c ../../vite.config.ts"
},
"devDependencies": {
Expand Down
18 changes: 18 additions & 0 deletions packages/configuration-loader/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false,
"emitDeclarationOnly": true,
"rootDir": "src",
"outDir": "dist",
"skipLibCheck": true
},
"exclude": [
"dist/*",
"*.config.ts",
"*.setup.ts",
"**/__tests__",
"**/__mocks__",
"src/**/*.test.tsx"
]
}
4 changes: 4 additions & 0 deletions packages/configuration-loader/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "*.config.ts"]
}
Loading

0 comments on commit fd7723d

Please sign in to comment.