Skip to content

Commit

Permalink
chore: get lib-reactive-io ready for npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
justmoon committed Oct 13, 2024
1 parent 482a1e6 commit 29f068b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
35 changes: 30 additions & 5 deletions packages/lib-reactive-io/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "@dassie/lib-reactive-io",
"type": "module",
"version": "0.0.0",
"private": true,
"version": "0.0.1",
"description": "IO abstraction layer for Dassie",
"main": "./src/index.ts",
"type": "module",
"sideEffects": false,
"exports": {
".": {
"node": "./src/node/index.ts",
Expand All @@ -17,11 +16,36 @@
"import": "./src/browser/index.ts"
}
},
"publishConfig": {
"exports": {
".": {
"types": "./dist/browser/index.d.ts",
"node": "./dist/node/index.js",
"import": "./dist/browser/index.js"
},
"./node": {
"types": "./dist/node/index.d.ts",
"import": "./dist/node/index.js"
},
"./browser": {
"types": "./dist/browser/index.d.ts",
"import": "./dist/browser/index.js"
}
}
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc && rollup -c",
"lint": "eslint --color .",
"typecheck": "tsc --pretty"
},
"files": [
"dist/node/index.js",
"dist/node/index.js.map",
"dist/node/index.d.ts",
"dist/browser/index.js",
"dist/browser/index.js.map",
"dist/browser/index.d.ts"
],
"author": {
"name": "Stefan Thomas",
"email": "justmoon@members.fsf.org",
Expand All @@ -34,6 +58,7 @@
"uint8array-extras": "^1.4.0"
},
"devDependencies": {
"@dassie/meta-rollup-config": "workspace:^",
"@dassie/meta-tsconfig": "workspace:^",
"@types/node": "^22.5.5"
},
Expand Down
12 changes: 12 additions & 0 deletions packages/lib-reactive-io/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { entrypoint } from "@dassie/meta-rollup-config"

const config = [
...entrypoint("browser/index", {
external: ["@dassie/lib-type-utils", "@dassie/lib-reactive"],
}),
...entrypoint("node/index", {
external: ["@dassie/lib-type-utils", "@dassie/lib-reactive"],
}),
]

export default config
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 29f068b

Please sign in to comment.