Skip to content

Commit

Permalink
(hds-1742) Renamed exports.ts to index.ts
Browse files Browse the repository at this point in the history
The bundled cjs/*.* has same filenames as the source. So result would be exports.js.
  • Loading branch information
NikoHelle committed Jan 5, 2024
1 parent 5089a83 commit 2f0806b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/hds-js/.npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.*
lib
exports.ts
index.ts
2 changes: 1 addition & 1 deletion packages/hds-js/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The `hds-js` is a custom export from the [hds-react](https://github.com/City-of-

## Adding files to the bundle

Add required exports to the `exports.ts` and run `yarn update:hds-js` from the `packages/react` folder.
Add required exports to the `index.ts` and run `yarn update:hds-js` from the `packages/react` folder.

## Building

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/react/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ if (!buildForHdsJs && !updateHdsJs) {
});
} else {
outputQueue.push({
input: { index: '../hds-js/exports.ts' },
input: { index: '../hds-js/index.ts' },
output: [
{
dir: '../hds-js/lib',
Expand All @@ -229,7 +229,7 @@ if (!buildForHdsJs && !updateHdsJs) {

if (!updateHdsJs) {
outputQueue.push({
input: ['../hds-js/exports.ts'],
input: ['../hds-js/index.ts'],
output: [
{
dir: '../hds-js/lib/cjs',
Expand Down

0 comments on commit 2f0806b

Please sign in to comment.