Skip to content

Commit

Permalink
chore(package): store application resources in the lib folder
Browse files Browse the repository at this point in the history
Previously in they were stored in the `dist` folder, which is commonly used to store bundles.
`lib` is generally use to store the generated javascript code, so the npm package now follows this
convention.
  • Loading branch information
tbouffard committed Sep 18, 2024
1 parent 070d3a5 commit 1bace44
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/addons/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/
8 changes: 4 additions & 4 deletions packages/addons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
"type": "git",
"url": "git+https://github.com/process-analytics/bv-experimental-add-ons.git"
},
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"./package.json": "./package.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/addons/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
"outDir": "./dist", /* Specify an output folder for all emitted files. */
"outDir": "./lib", /* Specify an output folder for all emitted files. */
// "removeComments": true, /* Disable emitting comments. */
// "noEmit": true, /* Disable emitting files from a compilation. */
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
Expand Down

0 comments on commit 1bace44

Please sign in to comment.