Skip to content

Commit

Permalink
configure ott-common to export the correct files in the right environ…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
dyc3 committed Feb 22, 2024
1 parent 9435d66 commit da4145c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,21 @@
"name": "ott-common",
"version": "0.10.0",
"license": "AGPL-3.0-or-later",
"module": "es2020",
"type": "module",
"module": "index.ts",
"files": [
"*"
],
"exports": {
".": {
"lean": "./ts-out/index.js",
"default": "./index.ts"
},
"./*": {
"lean": "./ts-out/*",
"default": "./*"
}
},
"scripts": {
"build": "tsc",
"lint": "tsc --noEmit && eslint --ext .js,.ts --fix .",
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "esnext",
"scripts": {
"start": "node --experimental-specifier-resolution=node --loader ts-node/esm app.ts",
"start-lean": "node --experimental-specifier-resolution=node --optimize-for-size --max-old-space-size=200 ts-out/server/app.js",
"start-lean": "node --experimental-specifier-resolution=node --optimize-for-size --max-old-space-size=200 --conditions=lean ts-out/app.js",
"debug": "nodemon --exec node --experimental-specifier-resolution=node --loader ts-node/esm --ignore 'tests/*' --inspect -e ts,js app.ts",
"build": "tsc",
"lint": "tsc --noEmit && eslint --fix .",
Expand Down

0 comments on commit da4145c

Please sign in to comment.