Skip to content
Closed
7 changes: 4 additions & 3 deletions output/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"name": "@db-ux/ngx-core-components",
"version": "0.0.0",
"type": "module",
"description": "Angular components @db-ux/core-components",
"repository": {
"type": "git",
"url": "git+https://github.com/db-ux-design-system/core-web.git"
},
"license": "Apache-2.0",
"main": "dist/fesm5.js",
"module": "dist/fesm5.js",
"types": "dist/core.d.ts",
"main": "fesm2022/db-ux-ngx-core-components.mjs",
"module": "fesm2022/db-ux-ngx-core-components.mjs",
"types": "index.d.ts",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"types": "index.d.ts",
"types": "index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/fesm2022/db-ux-angular-core-components.mjs"
},
"./styles/*": "./dist/styles/*"
}

Without export, we might still get warnings.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michaelmkraus should those folders actually actually include /dist/, as this folder level isn't included in the final package structure, compare to https://www.npmjs.com/package/@db-ux/ngx-core-components?activeTab=code ?

And what's the "./styles/*": "./dist/styles/*"declaration about? This is not included in the resulting node package.

"scripts": {
"build": "ng build",
"ng": "ng",
Expand Down
7 changes: 7 additions & 0 deletions output/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@db-ux/react-core-components",
"version": "0.0.0",
"type": "module",
"description": "React components for @db-ux/core-components",
"repository": {
"type": "git",
Expand All @@ -13,6 +14,12 @@
"files": [
"dist/"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"scripts": {
"build": "npm-run-all tsc",
"mv:dist": "cpr dist ../../build-outputs/react/dist --overwrite",
Expand Down
6 changes: 6 additions & 0 deletions packages/foundations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"assets",
"build"
],
"exports": {
".": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
}
},
"scripts": {
"build": "npm-run-all build:*",
"build:01_normalize": "npm-run-all copy-prepare:*",
Expand Down
5 changes: 4 additions & 1 deletion packages/migration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@
"bin": {
"@db-ux/core-migration": "build/index.js"
},
"main": "build.js",
"main": "build/index.js",
"files": [
"build"
],
"exports": {
".": "./build/index.js"
},
"scripts": {
"build": "node esbuild.js",
"copy-build": "npm-run-all copy-build:*",
Expand Down
Loading