Skip to content

Commit

Permalink
Merge pull request #139 from nabla-studio/davidesegullo/fix-type_gen
Browse files Browse the repository at this point in the history
Davidesegullo/fix type gen
  • Loading branch information
DavideSegullo authored Oct 30, 2024
2 parents 92f4618 + adabf47 commit e76d033
Show file tree
Hide file tree
Showing 16 changed files with 578 additions and 555 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Clear all Github actions caches on sundays
on:
workflow_dispatch:

jobs:
clean-cache:
name: Delete all caches
runs-on: ubuntu-20.04

steps:
- name: Clear caches
uses: easimon/wipe-cache@main
with:
dry-run: 'true'
4 changes: 3 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
link-workspace-packages=true
strict-peer-dependencies=false
auto-install-peers=true
node-linker=hoisted
35 changes: 17 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
"@babel/preset-react": "^7.14.5",
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@nx/devkit": "20.0.5",
"@nx/eslint": "20.0.5",
"@nx/eslint-plugin": "20.0.5",
"@nx/jest": "20.0.5",
"@nx/js": "20.0.5",
"@nx/next": "20.0.5",
"@nx/react": "20.0.5",
"@nx/vite": "20.0.5",
"@nx/vue": "20.0.5",
"@nx/workspace": "20.0.5",
"@swc-node/register": "1.9.2",
"@swc/core": "1.5.7",
"@nx/devkit": "20.0.6",
"@nx/eslint": "20.0.6",
"@nx/eslint-plugin": "20.0.6",
"@nx/jest": "20.0.6",
"@nx/js": "20.0.6",
"@nx/next": "20.0.6",
"@nx/react": "20.0.6",
"@nx/vite": "20.0.6",
"@nx/vue": "20.0.6",
"@nx/workspace": "20.0.6",
"@swc-node/register": "1.10.9",
"@swc/core": "1.7.40",
"@testing-library/react": "15.0.6",
"@types/babel__core": "^7.20.5",
"@types/jest": "29.5.14",
Expand Down Expand Up @@ -62,18 +62,17 @@
"jest-environment-jsdom": "29.7.0",
"jsdom": "^22.1.0",
"json-schema-to-typescript": "^13.1.1",
"nx": "20.0.5",
"nx": "20.0.6",
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
"tslib": "^2.8.0",
"typescript": "5.5.4",
"verdaccio": "^5.27.0",
"vite": "5.4.9",
"vite-plugin-dts": "~2.3.0",
"vite": "5.4.10",
"vite-plugin-dts": "~4.3.0",
"vitest": "2.1.3",
"vue-tsc": "2.1.6",
"yargs": "^17.7.2"
"vue-tsc": "2.1.6"
},
"nx": {
"includedScripts": []
Expand Down
4 changes: 2 additions & 2 deletions packages/core/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export default defineConfig({
nxViteTsPaths(),
dts({
entryRoot: 'src',
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
skipDiagnostics: true,
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
pathsToAliases: false,
}),
],

Expand Down
4 changes: 2 additions & 2 deletions packages/next/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export default defineConfig({
nxViteTsPaths(),
dts({
entryRoot: 'src',
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
skipDiagnostics: true,
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
pathsToAliases: false,
}),
],

Expand Down
4 changes: 2 additions & 2 deletions packages/nuxt/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default defineConfig({
nxViteTsPaths(),
dts({
entryRoot: 'src',
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
skipDiagnostics: true,
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
pathsToAliases: false,
}),
],

Expand Down
4 changes: 2 additions & 2 deletions packages/react-native/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export default defineConfig({
nxViteTsPaths(),
dts({
entryRoot: 'src',
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
skipDiagnostics: true,
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
pathsToAliases: false,
}),
],

Expand Down
9 changes: 0 additions & 9 deletions packages/react/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,8 @@
"build": {
"executor": "@nx/vite:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/packages/react"
},
"configurations": {
"development": {
"mode": "development"
},
"production": {
"mode": "production"
}
}
},
"test": {
Expand Down
8 changes: 2 additions & 6 deletions packages/react/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": [
"node",
"@nx/react/typings/cssmodule.d.ts",
"@nx/react/typings/image.d.ts",
"vite/client"
]
"declaration": true,
"types": ["node", "vite/client"]
},
"exclude": [
"**/*.spec.ts",
Expand Down
5 changes: 3 additions & 2 deletions packages/react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default defineConfig({
nxViteTsPaths(),
dts({
entryRoot: 'src',
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
skipDiagnostics: true,
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
pathsToAliases: false,
}),
],

Expand All @@ -28,6 +28,7 @@ export default defineConfig({
// See: https://vitejs.dev/guide/build.html#library-mode
build: {
outDir: '../../dist/packages/react',
emptyOutDir: true,
reportCompressedSize: true,
commonjsOptions: { transformMixedEsModules: true },
lib: {
Expand Down
11 changes: 8 additions & 3 deletions packages/ssr/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export default defineConfig({
nxViteTsPaths(),
dts({
entryRoot: 'src',
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
skipDiagnostics: true,
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
}),
],

Expand Down Expand Up @@ -42,7 +41,13 @@ export default defineConfig({
preserveModules: true,
},
// External packages that should not be bundled into your library.
external: ['superjson', 'zustand', 'zustand/middleware', '@quirks/store'],
external: [
'superjson',
'zustand',
'zustand/middleware',
'@quirks/store',
'js-cookie',
],
},
},

Expand Down
4 changes: 2 additions & 2 deletions packages/store/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export default defineConfig({
nxViteTsPaths(),
dts({
entryRoot: 'src',
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
skipDiagnostics: true,
pathsToAliases: false,
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
}),
],

Expand Down
4 changes: 2 additions & 2 deletions packages/vue/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default defineConfig({
nxViteTsPaths(),
dts({
entryRoot: 'src',
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
skipDiagnostics: true,
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
pathsToAliases: false,
}),
],

Expand Down
4 changes: 2 additions & 2 deletions packages/wallet-registry/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export default defineConfig({
nxViteTsPaths(),
dts({
entryRoot: 'src',
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
skipDiagnostics: true,
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
pathsToAliases: false,
}),
],

Expand Down
4 changes: 2 additions & 2 deletions packages/wallets/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export default defineConfig({
nxViteTsPaths(),
dts({
entryRoot: 'src',
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
skipDiagnostics: true,
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
pathsToAliases: false,
}),
],

Expand Down
Loading

0 comments on commit e76d033

Please sign in to comment.