Skip to content

Commit

Permalink
🔨 chore: output ESM & CJS (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 authored Apr 5, 2022
1 parent ba4de17 commit ee3c655
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 19 deletions.
18 changes: 17 additions & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -25,6 +37,10 @@
"bundle": false,
"platform": "node",
"target": "node16",
"silent": true
"silent": true,
"format": [
"cjs",
"esm"
]
}
}
27 changes: 21 additions & 6 deletions packages/permissions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
"*": {
Expand Down
22 changes: 21 additions & 1 deletion packages/schemas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -23,6 +39,10 @@
"platform": "node",
"target": "node16",
"silent": true,
"minify": true
"minify": true,
"format": [
"cjs",
"esm"
]
}
}
28 changes: 22 additions & 6 deletions packages/types/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -23,6 +35,10 @@
"bundle": false,
"platform": "node",
"target": "node16",
"silent": true
"silent": true,
"format": [
"cjs",
"esm"
]
}
}
25 changes: 21 additions & 4 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -42,6 +56,9 @@
"platform": "node",
"target": "node16",
"silent": true,
"minify": true
"format": [
"cjs",
"esm"
]
}
}
12 changes: 11 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,17 @@ __metadata:
languageName: unknown
linkType: soft

"@snailycad/[email protected], @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:
Expand Down

0 comments on commit ee3c655

Please sign in to comment.