Skip to content

Commit e736905

Browse files
feat: Add explicit package.json type field (#5505)
1 parent 25eda1b commit e736905

File tree

21 files changed

+23
-5
lines changed

21 files changed

+23
-5
lines changed
File renamed without changes.

nx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"namedInputs": {
2929
"globalBuildAffectingConfig": [
3030
"{workspaceRoot}/.browserslistrc",
31-
"{workspaceRoot}/babel.config.js",
31+
"{workspaceRoot}/babel.config.cjs",
3232
"{workspaceRoot}/package.json",
3333
"{workspaceRoot}/scripts/getRollupConfig.mjs",
3434
"{workspaceRoot}/tsconfig.json"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "query",
33
"repository": "https://github.com/tanstack/query.git",
44
"packageManager": "[email protected]",
5+
"type": "module",
56
"scripts": {
67
"clean": "pnpm --filter \"./packages/**\" run clean",
78
"preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...'); process.exit(1)}\" || npx -y only-allow pnpm",

packages/codemods/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"type": "github",
1111
"url": "https://github.com/sponsors/tannerlinsley"
1212
},
13+
"type": "commonjs",
1314
"exports": {
1415
"./package.json": "./package.json"
1516
},

packages/eslint-plugin-query/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"type": "github",
1111
"url": "https://github.com/sponsors/tannerlinsley"
1212
},
13+
"type": "commonjs",
1314
"main": "build/lib/index.js",
1415
"exports": {
1516
".": {

packages/query-async-storage-persister/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"type": "github",
1111
"url": "https://github.com/sponsors/tannerlinsley"
1212
},
13+
"type": "commonjs",
1314
"types": "build/lib/index.d.ts",
1415
"main": "build/lib/index.js",
1516
"module": "build/lib/index.esm.js",

packages/query-broadcast-client-experimental/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"type": "github",
1111
"url": "https://github.com/sponsors/tannerlinsley"
1212
},
13+
"type": "commonjs",
1314
"types": "build/lib/index.d.ts",
1415
"main": "build/lib/index.js",
1516
"module": "build/lib/index.esm.js",

packages/query-core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"type": "github",
1111
"url": "https://github.com/sponsors/tannerlinsley"
1212
},
13+
"type": "commonjs",
1314
"types": "build/lib/index.d.ts",
1415
"main": "build/lib/index.js",
1516
"module": "build/lib/index.esm.js",

packages/query-devtools/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"type": "github",
1111
"url": "https://github.com/sponsors/tannerlinsley"
1212
},
13+
"type": "commonjs",
1314
"types": "build/types/index.d.ts",
1415
"main": "build/umd/index.js",
1516
"module": "build/esm/index.mjs",

packages/query-persist-client-core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"type": "github",
1111
"url": "https://github.com/sponsors/tannerlinsley"
1212
},
13+
"type": "commonjs",
1314
"types": "build/lib/index.d.ts",
1415
"main": "build/lib/index.js",
1516
"module": "build/lib/index.esm.js",

0 commit comments

Comments
 (0)