Skip to content

Commit

Permalink
fix: add missing require field on export to generate hybrid NPM packa…
Browse files Browse the repository at this point in the history
…ge correctly

Closes: #2795
  • Loading branch information
Romakita committed Aug 26, 2024
1 parent 761d325 commit 2b49bb6
Show file tree
Hide file tree
Showing 67 changed files with 60 additions and 174 deletions.
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"types": "./lib/types/index.d.ts",
"browser": "./lib/browser/core.umd.min.js",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/di/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"types": "./lib/types/index.d.ts",
"browser": "./lib/browser/di.umd.min.js",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/engines/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/graphql/apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/graphql/graphql-ws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/graphql/typegraphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/orm/adapters-redis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/orm/adapters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/orm/ioredis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/orm/mikro-orm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/orm/mongoose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/orm/objection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/orm/prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/orm/testcontainers-mongo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
},
"./vitest/setup": {
Expand Down
1 change: 1 addition & 0 deletions packages/orm/testing-mongoose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/orm/typeorm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/perf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/platform/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/platform/platform-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/platform/platform-exceptions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/platform/platform-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/platform/platform-koa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/platform/platform-log-middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/platform/platform-middlewares/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/platform/platform-params/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/platform/platform-response-filter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/platform/platform-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/platform/platform-serverless-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/platform/platform-serverless-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/platform/platform-serverless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/platform/platform-test-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/platform/platform-views/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/security/jwks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/security/oidc-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/security/passport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/specs/ajv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/specs/exceptions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/specs/json-mapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"types": "./lib/types/index.d.ts",
"browser": "./lib/browser/json-mapper.umd.min.js",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/specs/openspec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/specs/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"types": "./lib/types/index.d.ts",
"browser": "./lib/browser/schema.umd.min.js",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/specs/swagger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/third-parties/agenda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/third-parties/bullmq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/third-parties/components-scan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/third-parties/event-emitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"types": "./lib/types/index.d.ts",
"browser": "./lib/browser/event-emitter.umd.min.js",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/third-parties/formio-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/third-parties/formio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/third-parties/pulse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/third-parties/schema-formio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"types": "./lib/types/index.d.ts",
"browser": "./lib/browser/schema-formio.umd.min.js",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/cjs/index.js"
}
},
Expand Down
Loading

0 comments on commit 2b49bb6

Please sign in to comment.