diff --git a/packages/config/package.json b/packages/config/package.json index 17f55ccf4..9f6e199f7 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -2,6 +2,18 @@ "name": "@snailycad/config", "version": "1.0.0-beta.79", "main": "./dist/index.js", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", + "exports": { + ".": { + "require": "./dist/index.js", + "import": "./dist/index.mjs" + }, + "./package.json": "./package.json" + }, + "files": [ + "dist" + ], "scripts": { "build": "tsup", "typecheck": "tsc --noEmit", @@ -25,6 +37,10 @@ "bundle": false, "platform": "node", "target": "node16", - "silent": true + "silent": true, + "format": [ + "cjs", + "esm" + ] } } diff --git a/packages/permissions/package.json b/packages/permissions/package.json index e8526d71a..a013f2e6d 100644 --- a/packages/permissions/package.json +++ b/packages/permissions/package.json @@ -2,6 +2,22 @@ "name": "@snailycad/permissions", "version": "1.0.0-beta.79", "main": "./dist/index.js", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", + "exports": { + ".": { + "require": "./dist/index.js", + "import": "./dist/index.mjs" + }, + "./permissions": { + "require": "./dist/permissions.js", + "import": "./dist/permissions.mjs" + }, + "./package.json": "./package.json" + }, + "files": [ + "dist" + ], "scripts": { "build": "tsup", "typecheck": "tsc --noEmit", @@ -26,12 +42,11 @@ "bundle": false, "platform": "node", "target": "node16", - "silent": true - }, - "exports": { - ".": "./dist/index.js", - "./permissions": "./dist/permissions.js", - "./package.json": "./package.json" + "silent": true, + "format": [ + "cjs", + "esm" + ] }, "typesVersions": { "*": { diff --git a/packages/schemas/package.json b/packages/schemas/package.json index 88d5325e3..1d9115f3e 100644 --- a/packages/schemas/package.json +++ b/packages/schemas/package.json @@ -2,6 +2,22 @@ "name": "@snailycad/schemas", "version": "1.0.0-beta.79", "main": "./dist/index.js", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", + "exports": { + ".": { + "require": "./dist/index.js", + "import": "./dist/index.mjs" + }, + "./dist/*": { + "require": "./dist/*.js", + "import": "./dist/*.mjs" + }, + "./package.json": "./package.json" + }, + "files": [ + "dist" + ], "scripts": { "build": "tsup", "typecheck": "tsc --noEmit" @@ -23,6 +39,10 @@ "platform": "node", "target": "node16", "silent": true, - "minify": true + "minify": true, + "format": [ + "cjs", + "esm" + ] } } diff --git a/packages/types/package.json b/packages/types/package.json index 62c3115ef..a0015530f 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,20 +1,32 @@ { "name": "@snailycad/types", - "version": "1.0.0-beta.79", + "version": "1.0.0-beta.79.1", + "exports": { + ".": { + "require": "./dist/index.js", + "import": "./dist/index.mjs" + }, + "./package.json": "./package.json" + }, + "files": [ + "dist" + ], "main": "./dist/index.js", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "scripts": { "build": "tsup", "typecheck": "tsc --noEmit" }, + "dependencies": { + "type-fest": "^2.12.2", + "zod": "^3.14.3" + }, "devDependencies": { "@snailycad/permissions": "1.0.0-beta.79", "tsup": "^5.12.2", "typescript": "^4.6.3" }, - "dependencies": { - "type-fest": "^2.12.2", - "zod": "^3.14.3" - }, "tsup": { "entry": [ "src/**/*.ts" @@ -23,6 +35,10 @@ "bundle": false, "platform": "node", "target": "node16", - "silent": true + "silent": true, + "format": [ + "cjs", + "esm" + ] } } diff --git a/packages/utils/package.json b/packages/utils/package.json index 6b339df7e..2d1e81e94 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -2,12 +2,26 @@ "name": "@snailycad/utils", "version": "1.0.0-beta.79", "main": "./dist/index.js", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "exports": { - ".": "./dist/index.js", - "./callsign": "./dist/callsign.js", - "./typeguards": "./dist/typeguards.js", + ".": { + "require": "./dist/index.js", + "import": "./dist/index.mjs" + }, + "./callsign": { + "require": "./dist/callsign.js", + "import": "./dist/callsign.mjs" + }, + "./typeguards": { + "require": "./dist/typeguards.js", + "import": "./dist/typeguards.mjs" + }, "./package.json": "./package.json" }, + "files": [ + "dist" + ], "typesVersions": { "*": { "callsign": [ @@ -42,6 +56,9 @@ "platform": "node", "target": "node16", "silent": true, - "minify": true + "format": [ + "cjs", + "esm" + ] } } diff --git a/yarn.lock b/yarn.lock index 85fbb4d18..3a68a5a0f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1537,7 +1537,17 @@ __metadata: languageName: unknown linkType: soft -"@snailycad/types@1.0.0-beta.79, @snailycad/types@workspace:packages/types": +"@snailycad/types@npm:1.0.0-beta.79": + version: 1.0.0-beta.79 + resolution: "@snailycad/types@npm:1.0.0-beta.79" + dependencies: + type-fest: ^2.12.2 + zod: ^3.14.3 + checksum: 053951a512a799f076e89fe680993279aaebd321bddc62d5858600eea4deed839336f6fe5eebbdf0df78e67f870f31deb842e2316a523644cc6e8c29ab34cbf8 + languageName: node + linkType: hard + +"@snailycad/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@snailycad/types@workspace:packages/types" dependencies: