Skip to content

Commit c054802

Browse files
committed
Add ./install to node package exports
1 parent 1a5084b commit c054802

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/remix-node/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@
2020
"import": "./dist/esm/index.mjs",
2121
"require": "./dist/index.js"
2222
},
23+
"./install": {
24+
"types": "./dist/install.d.ts",
25+
"default": "./dist/install.js"
26+
},
2327
"./package.json": "./package.json"
2428
},
2529
"sideEffects": [
26-
"./install.js"
30+
"./dist/install.js"
2731
],
2832
"scripts": {
2933
"tsc": "tsc"

packages/remix-node/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = function rollup() {
2424
return [
2525
{
2626
external: (id) => isBareModuleId(id),
27-
input: `${SOURCE_DIR}/index.ts`,
27+
input: [`${SOURCE_DIR}/index.ts`, `${SOURCE_DIR}/install.ts`],
2828
output: {
2929
banner: createBanner(name, version),
3030
dir: OUTPUT_DIR,

0 commit comments

Comments
 (0)