Skip to content

Commit

Permalink
fix(angular-query): improve compatibility with Jest (#8367)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoud-dv authored Nov 28, 2024
1 parent c402a2b commit ebcaa55
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
8 changes: 3 additions & 5 deletions packages/angular-query-devtools-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@
},
"type": "module",
"types": "build/index.d.ts",
"module": "build/index.js",
"module": "build/index.mjs",
"exports": {
".": {
"import": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
}
"types": "./build/index.d.ts",
"default": "./build/index.mjs"
},
"./package.json": {
"default": "./package.json"
Expand Down
3 changes: 3 additions & 0 deletions packages/angular-query-devtools-experimental/tsup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ export default defineConfig({
format: ['esm'],
dts: true,
outDir: 'build',
outExtension({ format }) {
return format === 'esm' ? { js: '.mjs' } : { js: '.js' }
},
})
8 changes: 3 additions & 5 deletions packages/angular-query-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@
},
"type": "module",
"types": "build/index.d.ts",
"module": "build/index.js",
"module": "build/index.mjs",
"exports": {
".": {
"import": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
}
"types": "./build/index.d.ts",
"default": "./build/index.mjs"
},
"./package.json": {
"default": "./package.json"
Expand Down
3 changes: 3 additions & 0 deletions packages/angular-query-experimental/tsup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ export default defineConfig({
format: ['esm'],
dts: true,
outDir: 'build',
outExtension({ format }) {
return format === 'esm' ? { js: '.mjs' } : { js: '.js' }
},
})

0 comments on commit ebcaa55

Please sign in to comment.