Skip to content

Commit

Permalink
🐛 fix(testing): npm package exports (#1346)
Browse files Browse the repository at this point in the history
* adjust build script

* adjust exports

* adjust the linking of the angular tests
  • Loading branch information
hirsch88 authored Mar 12, 2024
1 parent fdb3ab2 commit 2cc8637
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-pots-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@baloise/ds-core': patch
---

**testing**: fix import paths
26 changes: 13 additions & 13 deletions packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,33 @@
"@baloise/ds-core": "16.0.0",
"cypress-file-upload": "~5.0.8"
},
"module": "./index.esm.js",
"type": "module",
"module": "./dist/index.esm.js",
"main": "./dist/index.esm.js",
"types": "./dist/index.esm.d.ts",
"main": "./index.esm.js",
"types": "./index.esm.d.ts",
"exports": {
".": "./dist/index.esm.js",
"./add-custom-commands": "./dist/add-custom-commands.esm.js",
"./add-override-commands": "./dist/add-override-commands.esm.js",
"./selectors": "./dist/selectors.esm.js",
"./viewports": "./dist/viewports.esm.js"
".": "./index.esm.js",
"./add-custom-commands": "./add-custom-commands.esm.js",
"./add-override-commands": "./add-override-commands.esm.js",
"./selectors": "./selectors.esm.js",
"./viewports": "./viewports.esm.js"
},
"typesVersions": {
"*": {
".": [
"./dist/index.esm.d.ts"
"./index.esm.d.ts"
],
"add-custom-commands": [
"./dist/add-custom-commands.esm.d.ts"
"./add-custom-commands.esm.d.ts"
],
"add-override-commands": [
"./dist/add-override-commands.esm.d.ts"
"./add-override-commands.esm.d.ts"
],
"selectors": [
"./dist/selectors.esm.d.ts"
"./selectors.esm.d.ts"
],
"viewports": [
"./dist/viewports.esm.d.ts"
"./viewports.esm.d.ts"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/angular/base/v16/scripts/link.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pushd packages/core
npm link
popd

pushd packages/testing
pushd packages/testing/dist
npm link
popd

Expand Down
2 changes: 1 addition & 1 deletion test/angular/base/v17/scripts/link.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pushd packages/core
npm link
popd

pushd packages/testing
pushd packages/testing/dist
npm link
popd

Expand Down

0 comments on commit 2cc8637

Please sign in to comment.