Skip to content

Commit

Permalink
I tried putting mobx and tanstack/query in externals but it doesn't w…
Browse files Browse the repository at this point in the history
…ork for some reason
  • Loading branch information
sandstone991 committed Feb 18, 2024
1 parent ae7186c commit a87f4e3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 16 deletions.
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mobbing-query",
"description": "A very tiny wrapper around tanstack/query-core to provide observable queries inside mobx",
"author": "Ahmed Azzam",
"version": "0.0.11",
"version": "0.0.12",
"repository": {
"type": "git",
"url": "https://github.com/sandstone991/MobQ"
Expand Down Expand Up @@ -63,9 +63,6 @@
"dependencies": {
"@tanstack/query-core": "^5.20.5",
"mobx": "^6.12.0"
},
"peerDependencies": {
"mobx": "^6.0.0",
"@tanstack/query-core": "^5.0.0"
}

}
31 changes: 24 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@
"compilerOptions": {
"rootDir": ".",
"paths": {
"@/*": ["./src/*"],
"@@/*": ["./*"],
"@/*": [
"./src/*"
],
"@@/*": [
"./*"
],
},
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"lib": [
"ESNext",
"DOM"
],
"moduleResolution": "Node",
"strict": true,
"sourceMap": true,
Expand All @@ -19,8 +26,18 @@
"noUnusedParameters": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true,
"types": ["vite/client", "node"],
"types": [
"vite/client",
"node"
],
},
"include": ["src"],
"exclude": ["**/*.test.ts", "node_modules", "test/**", ".history/**"],
}
"include": [
"src"
],
"exclude": [
"**/*.test.ts",
"node_modules",
"test/**",
".history/**"
],
}
5 changes: 1 addition & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ module.exports = defineConfig({
formats,
fileName: format => fileName[format],
},
rollupOptions: {
external: Object.keys(packageJson.dependencies || {}),

},

},
test: {},
resolve: {
Expand Down

0 comments on commit a87f4e3

Please sign in to comment.