Skip to content

Commit

Permalink
Remove node export condition (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
smaye81 authored Feb 20, 2024
1 parent 084f9d3 commit 7388a7b
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 179 deletions.
8 changes: 1 addition & 7 deletions packages/connect-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,16 @@
},
"scripts": {
"clean": "rm -rf ./dist/*",
"build": "npm run build:cjs && npm run build:esm && npm run build:proxy",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc --project tsconfig.json --module commonjs --outDir ./dist/cjs --declaration --declarationDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.json --module ES2015 --verbatimModuleSyntax --outDir ./dist/esm --declaration --declarationDir ./dist/esm",
"build:proxy": "node ../../scripts/gen-esm-proxy.mjs .",
"attw": "attw --pack"
},
"type": "module",
"sideEffects": false,
"main": "./dist/cjs/index.js",
"exports": {
".": {
"node": {
"import": "./dist/proxy/index.js",
"require": "./dist/cjs/index.js"
},
"module": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
Expand Down
8 changes: 1 addition & 7 deletions packages/connect-fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,16 @@
},
"scripts": {
"clean": "rm -rf ./dist/*",
"build": "npm run build:cjs && npm run build:esm && npm run build:proxy",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc --project tsconfig.json --module commonjs --outDir ./dist/cjs --declaration --declarationDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.json --module ES2015 --verbatimModuleSyntax --outDir ./dist/esm --declaration --declarationDir ./dist/esm",
"build:proxy": "node ../../scripts/gen-esm-proxy.mjs .",
"attw": "attw --pack"
},
"type": "module",
"sideEffects": false,
"main": "./dist/cjs/index.js",
"exports": {
".": {
"node": {
"import": "./dist/proxy/index.js",
"require": "./dist/cjs/index.js"
},
"module": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
Expand Down
8 changes: 1 addition & 7 deletions packages/connect-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,16 @@
},
"scripts": {
"clean": "rm -rf ./dist/*",
"build": "npm run build:cjs && npm run build:esm && npm run build:proxy",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc --project tsconfig.json --module commonjs --outDir ./dist/cjs --declaration --declarationDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.json --module ES2015 --verbatimModuleSyntax --outDir ./dist/esm --declaration --declarationDir ./dist/esm",
"build:proxy": "node ../../scripts/gen-esm-proxy.mjs .",
"attw": "attw --pack"
},
"type": "module",
"sideEffects": false,
"main": "./dist/cjs/index.js",
"exports": {
".": {
"node": {
"import": "./dist/proxy/index.js",
"require": "./dist/cjs/index.js"
},
"module": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
Expand Down
8 changes: 1 addition & 7 deletions packages/connect-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,16 @@
},
"scripts": {
"clean": "rm -rf ./dist/*",
"build": "npm run build:cjs && npm run build:esm && npm run build:proxy",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc --project tsconfig.json --module commonjs --outDir ./dist/cjs --declaration --declarationDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.json --module ES2015 --verbatimModuleSyntax --outDir ./dist/esm --declaration --declarationDir ./dist/esm",
"build:proxy": "node ../../scripts/gen-esm-proxy.mjs .",
"attw": "attw --pack",
"jasmine": "jasmine --config=jasmine.json"
},
"type": "module",
"main": "./dist/cjs/index.js",
"exports": {
".": {
"node": {
"import": "./dist/proxy/index.js",
"require": "./dist/cjs/index.js"
},
"module": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
Expand Down
8 changes: 1 addition & 7 deletions packages/connect-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,16 @@
},
"scripts": {
"clean": "rm -rf ./dist/*",
"build": "npm run build:cjs && npm run build:esm && npm run build:proxy",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc --project tsconfig.json --module commonjs --outDir ./dist/cjs --declaration --declarationDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.json --module ES2015 --verbatimModuleSyntax --outDir ./dist/esm --declaration --declarationDir ./dist/esm",
"build:proxy": "node ../../scripts/gen-esm-proxy.mjs .",
"attw": "attw --pack"
},
"type": "module",
"sideEffects": false,
"main": "./dist/cjs/index.js",
"exports": {
".": {
"node": {
"import": "./dist/proxy/index.js",
"require": "./dist/cjs/index.js"
},
"module": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
Expand Down
28 changes: 1 addition & 27 deletions packages/connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
"scripts": {
"clean": "rm -rf ./dist/*",
"generate": "buf generate src/protocol-grpc/proto",
"build": "npm run build:cjs && npm run build:esm && npm run build:proxy && node scripts/update-user-agent.mjs",
"build": "npm run build:cjs && npm run build:esm && node scripts/update-user-agent.mjs",
"build:cjs": "tsc --project tsconfig.json --module commonjs --outDir ./dist/cjs --declaration --declarationDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.json --module ES2015 --verbatimModuleSyntax --outDir ./dist/esm --declaration --declarationDir ./dist/esm",
"build:proxy": "node ../../scripts/gen-esm-proxy.mjs . protocol protocol-connect protocol-grpc protocol-grpc-web",
"jasmine": "jasmine --config=jasmine.json",
"attw": "attw --pack"
},
Expand All @@ -23,47 +22,22 @@
"main": "./dist/cjs/index.js",
"exports": {
".": {
"node": {
"import": "./dist/proxy/index.js",
"require": "./dist/cjs/index.js"
},
"module": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./protocol": {
"node": {
"import": "./dist/proxy/protocol/index.js",
"require": "./dist/cjs/protocol/index.js"
},
"module": "./dist/esm/protocol/index.js",
"import": "./dist/esm/protocol/index.js",
"require": "./dist/cjs/protocol/index.js"
},
"./protocol-connect": {
"node": {
"import": "./dist/proxy/protocol-connect/index.js",
"require": "./dist/cjs/protocol-connect/index.js"
},
"module": "./dist/esm/protocol-connect/index.js",
"import": "./dist/esm/protocol-connect/index.js",
"require": "./dist/cjs/protocol-connect/index.js"
},
"./protocol-grpc": {
"node": {
"import": "./dist/proxy/protocol-grpc/index.js",
"require": "./dist/cjs/protocol-grpc/index.js"
},
"module": "./dist/esm/protocol-grpc/index.js",
"import": "./dist/esm/protocol-grpc/index.js",
"require": "./dist/cjs/protocol-grpc/index.js"
},
"./protocol-grpc-web": {
"node": {
"import": "./dist/proxy/protocol-grpc-web/index.js",
"require": "./dist/cjs/protocol-grpc-web/index.js"
},
"module": "./dist/esm/protocol-grpc-web/index.js",
"import": "./dist/esm/protocol-grpc-web/index.js",
"require": "./dist/cjs/protocol-grpc-web/index.js"
}
Expand Down
117 changes: 0 additions & 117 deletions scripts/gen-esm-proxy.mjs

This file was deleted.

0 comments on commit 7388a7b

Please sign in to comment.