Skip to content

Commit

Permalink
[Node] Fix Module File Inclusion Issue (#24)
Browse files Browse the repository at this point in the history
When this was pulled in as a dependency, it did not include all the
files necessary to work. Found the problem and fixed it.

## Changes

- Updated the package.json file to handle the file inclusions properly

## Checklist

- [ ] If changes were made to `validations.yaml`, make sure that `yarn
install && yarn build` has been run from the root of the repo and the
results committed
  • Loading branch information
tanner-ricks authored Dec 20, 2024
1 parent 24d6fe5 commit 311d501
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "module",
"exports": {
".": {
"require": "./src/node/dist/regtech-regex.cjs",
"require": "./src/node/dist/regtech-regex.cjs.js",
"import": "./src/node/dist/regtech-regex.es.js"
},
"./validations.yaml": {
Expand All @@ -20,12 +20,14 @@
}
},
"files": [
"src/node/dist",
"src/validations.yaml",
"src/validations.json"
"src/validations.json",
"src/node/dist/index.d.ts",
"src/node/dist/regtech-regex.cjs.js",
"src/node/dist/regtech-regex.es.js"
],
"engines": {
"node": ">=22"
"node": ">=20"
},
"scripts": {
"build": "node src/node/build.js ; vite build"
Expand Down

0 comments on commit 311d501

Please sign in to comment.