refactor: ♻️ update package exports and remove root global export

This commit is contained in:
Julien Oculi 2024-07-16 13:47:11 +02:00
parent 3c4c2c517d
commit 8b30cf2992
3 changed files with 8 additions and 4 deletions

View file

@ -2,8 +2,9 @@
"name": "@cohabit/resources-manager", "name": "@cohabit/resources-manager",
"version": "0.1.2", "version": "0.1.2",
"exports": { "exports": {
".": "./mod.ts", "./models": "./src/models/mod.ts",
"./models": "./src/models/mod.ts" "./db": "./src/db/mod.ts",
"./types": "./types.ts"
}, },
"tasks": { "tasks": {
"start": "deno run --unstable-kv ./mod.ts" "start": "deno run --unstable-kv ./mod.ts"

View file

@ -4,6 +4,7 @@
"specifiers": { "specifiers": {
"jsr:@std/json@^0.223.0": "jsr:@std/json@0.223.0", "jsr:@std/json@^0.223.0": "jsr:@std/json@0.223.0",
"jsr:@std/streams@^0.223.0": "jsr:@std/streams@0.223.0", "jsr:@std/streams@^0.223.0": "jsr:@std/streams@0.223.0",
"npm:iterator-polyfill": "npm:iterator-polyfill@1.0.9",
"npm:superjson@1.13.3": "npm:superjson@1.13.3" "npm:superjson@1.13.3": "npm:superjson@1.13.3"
}, },
"jsr": { "jsr": {
@ -28,6 +29,10 @@
"integrity": "sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==", "integrity": "sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==",
"dependencies": {} "dependencies": {}
}, },
"iterator-polyfill@1.0.9": {
"integrity": "sha512-YKBrosdKd9nqEaJwpYZjlnax8WtLwCbTo7gnUXrQ3ARA92vD2W8hdOWCRzvotHByDRCvPrFvEFF4M3V53lwAHQ==",
"dependencies": {}
},
"superjson@1.13.3": { "superjson@1.13.3": {
"integrity": "sha512-mJiVjfd2vokfDxsQPOwJ/PtanO87LhpYY88ubI5dUB1Ab58Txbyje3+jpm+/83R/fevaq/107NNhtYBLuoTrFg==", "integrity": "sha512-mJiVjfd2vokfDxsQPOwJ/PtanO87LhpYY88ubI5dUB1Ab58Txbyje3+jpm+/83R/fevaq/107NNhtYBLuoTrFg==",
"dependencies": { "dependencies": {

2
mod.ts
View file

@ -1,2 +0,0 @@
export * from './src/models/mod.ts'
export { Db } from './src/db/mod.ts'