Skip to content

Commit

Permalink
Add exports to shared/package.json
Browse files Browse the repository at this point in the history
Clarify how sub-package imports work with shared.
  • Loading branch information
fwextensions committed Mar 23, 2023
1 parent cbb8e9d commit d237ea8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Ignore artifacts:
build

client/vite.config.js

client/build
user-guides/guides
user-guides/build

# tell prettier to keep its hands off the bloody config file
client/vite.config.js
7 changes: 6 additions & 1 deletion shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@
"ModelMetadata.js",
"constants",
"metadata"
]
],
"exports": {
"./constants": "./constants/index.js",
"./metadata": "./metadata/index.js",
"./metadata/*": "./metadata/*.js"
}
}

0 comments on commit d237ea8

Please sign in to comment.