diff --git a/package.json b/package.json index 7db32f6..4c48f57 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,9 @@ "npm": ">=7.0.0", "node": ">=14.0.0" }, + "dependencies": { + "@changesets/cli": "^2.24.1" + }, "devDependencies": { "@types/node": "^18.0.6", "@typescript-eslint/eslint-plugin": "^5.30.7", @@ -59,8 +62,5 @@ "repository": { "type": "git", "url": "git+https://github.com/oasisjs/bicuit.git" - }, - "dependencies": { - "@changesets/cli": "^2.24.1" } } diff --git a/packages/api-types/package.json b/packages/api-types/package.json index b50dd45..81ad6dc 100644 --- a/packages/api-types/package.json +++ b/packages/api-types/package.json @@ -12,6 +12,16 @@ "clean": "rm -rf dist && rm -rf .turbo", "dev": "tsup --watch" }, + "exports": { + "./package.json": "./package.json", + ".": { + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.mjs" + }, + "require": "./dist/index.js" + } + }, "devDependencies": { "tsup": "^6.1.3" }, diff --git a/packages/cache/package.json b/packages/cache/package.json index 26e7544..342f444 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -12,6 +12,16 @@ "clean": "rm -rf dist && rm -rf .turbo", "dev": "tsup --watch" }, + "exports": { + "./package.json": "./package.json", + ".": { + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.mjs" + }, + "require": "./dist/index.js" + } + }, "dependencies": { "@biscuitland/api-types": "^1.0.0", "ioredis": "^5.2.2" diff --git a/packages/core/package.json b/packages/core/package.json index 98c2fae..c682695 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -12,6 +12,16 @@ "clean": "rm -rf dist && rm -rf .turbo", "dev": "tsup --watch" }, + "exports": { + "./package.json": "./package.json", + ".": { + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.mjs" + }, + "require": "./dist/index.js" + } + }, "dependencies": { "@biscuitland/api-types": "^1.0.0", "@biscuitland/rest": "^1.0.0", diff --git a/packages/rest/package.json b/packages/rest/package.json index 123adc2..c0c524d 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -12,6 +12,16 @@ "clean": "rm -rf dist && rm -rf .turbo", "dev": "tsup --watch" }, + "exports": { + "./package.json": "./package.json", + ".": { + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.mjs" + }, + "require": "./dist/index.js" + } + }, "dependencies": { "@biscuitland/api-types": "^1.0.0" }, diff --git a/packages/ws/package.json b/packages/ws/package.json index 6da20e3..93fb22b 100644 --- a/packages/ws/package.json +++ b/packages/ws/package.json @@ -12,6 +12,16 @@ "clean": "rm -rf dist && rm -rf .turbo", "dev": "tsup --watch" }, + "exports": { + "./package.json": "./package.json", + ".": { + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.mjs" + }, + "require": "./dist/index.js" + } + }, "dependencies": { "@biscuitland/api-types": "^1.0.0", "ws": "^8.8.1" @@ -20,6 +30,7 @@ "@types/ws": "^8.5.3", "tsup": "^6.1.3" }, + "license": "Apache-2.0", "author": "Yuzuru ", "contributors": [