Skip to content

Commit

Permalink
tsafe do not need an esm distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed May 21, 2023
1 parent 6d08839 commit c208dc5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 83 deletions.
27 changes: 5 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
"url": "git://github.com/garronej/tsafe.git"
},
"scripts": {
"build": "yarn build:cjs && yarn build:esm && yarn build:deno",
"build:cjs": "tsc",
"build:esm": "rm -rf dist/esm && tsc -p tsconfig.esm.json && js2mjs dist/esm",
"build:deno": "denoify",
"build": "tsc && denoify",
"test": "yarn test:node && yarn test:deno",
"test:deno": "deno run --reload --unstable --no-check deno_dist/test/mod.ts",
"test:node": "node dist/test/",
Expand Down Expand Up @@ -50,30 +47,16 @@
"@types/node": "^18.11.18",
"@typescript-eslint/eslint-plugin": "^4.15.1",
"@typescript-eslint/parser": "^4.15.1",
"denoify": "^1.5.1",
"denoify": "^1.5.3",
"eslint": "^7.20.0",
"eslint-config-prettier": "^7.2.0",
"evt": "^2.3.0",
"evt": "^2.4.18",
"husky": "^4.3.0",
"improved-garbanzo-easy": "^0.0.1",
"js2mjs": "^0.3.0",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1",
"typescript": "5.0.0-dev.20230109"
"typescript": "^5.0.4"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/esm/index.mjs",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/esm/index.mjs",
"types": "./dist/index.d.ts"
},
"./*": {
"require": "./dist/*.js",
"import": "./dist/esm/*.mjs",
"types": "./dist/*.d.ts"
}
}
"types": "dist/index.d.ts"
}
8 changes: 0 additions & 8 deletions tsconfig.esm.json

This file was deleted.

72 changes: 19 additions & 53 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -540,17 +540,17 @@ deep-is@^0.1.3:
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831"
integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==

denoify@^1.5.1:
version "1.5.1"
resolved "https://registry.yarnpkg.com/denoify/-/denoify-1.5.1.tgz#2c1d789d677afb4e543255fce560a2e7fe83937a"
integrity sha512-YfbNYXp83+xXoqg/m0vBFEulQA9JBE8rsDthGf1vNZwA0Yse1BKENy96qfCxE7/UTtwMn8GVuvoze2YRm1mzhQ==
denoify@^1.5.3:
version "1.5.3"
resolved "https://registry.yarnpkg.com/denoify/-/denoify-1.5.3.tgz#8f912721968063354e1e75e403b20fa8c446c997"
integrity sha512-CFXRRBeTfggSdPuhUmfrjnzmrvfY3Cn5YHFt7abTHfYoVBq7gV51k/V2dwwiIMsqplW/xfwPX3wO2TNej/4o+g==
dependencies:
"@octokit/rest" "^18.0.0"
"@types/comment-json" "^1.1.1"
commander "^4.1.1"
comment-json "^3.0.2"
cosmiconfig "^7.0.1"
evt "^2.4.15"
evt "^2.4.18"
get-github-default-branch-name "^0.0.4"
gitignore-parser "0.0.2"
glob "^7.1.6"
Expand All @@ -559,7 +559,7 @@ denoify@^1.5.1:
parse-dont-validate "^4.0.1"
path-depth "^1.0.0"
scripting-tools "^0.19.14"
tsafe "^1.4.3"
tsafe "^1.6.0"
url-join "^4.0.1"

deprecation@^2.0.0, deprecation@^2.3.1:
Expand Down Expand Up @@ -743,23 +743,14 @@ esutils@^2.0.2:
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==

evt@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/evt/-/evt-2.3.0.tgz#709456803f79a125371f709fb32c0989a948a9f8"
integrity sha512-Tkv4vM4BrIiW9p+YM7DiWNGcxrajtSaNMsJl6C43gbk/pY5xhN7RNQ9j3wyXNgKrkudNYMTO4dTE+v3JGdJqTQ==
dependencies:
minimal-polyfills "^2.2.1"
run-exclusive "^2.2.15"
tsafe "^0.10.0"

evt@^2.4.15:
version "2.4.15"
resolved "https://registry.yarnpkg.com/evt/-/evt-2.4.15.tgz#bf673dd2b409067fcdc182becd8e7dbed13692e1"
integrity sha512-jlDDDWdoDg2wIZa9m08HVelHzEAlZLpLbDcWMqlc6nqKHG1Z3ZqC7teDoNH3upClx3SKwJTC0H7RIMfxe7zX2g==
evt@^2.4.18:
version "2.4.18"
resolved "https://registry.yarnpkg.com/evt/-/evt-2.4.18.tgz#931012610dcd3bc7c0877d61018a704e9e5511db"
integrity sha512-kMYW3DPrUWvFsOUf3cN1NMdg0MEFYLMLqC7hPSasNs8TOZCOBsDgazr6nXda2iUur/2L6BtRu0oCl2++oGYZxA==
dependencies:
minimal-polyfills "^2.2.2"
run-exclusive "^2.2.18"
tsafe "^1.4.3"
tsafe "^1.6.0"

execa@^4.1.0:
version "4.1.0"
Expand Down Expand Up @@ -1076,14 +1067,6 @@ js-yaml@^3.13.1:
argparse "^1.0.7"
esprima "^4.0.0"

js2mjs@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/js2mjs/-/js2mjs-0.3.0.tgz#4db5f4e31dae63ee661f689e853308b138bbc58e"
integrity sha512-jiejhgZW09Y7m4IMQbsosFWHwPLeskSS5Ybd1lrf3RskjkHd6XaLtNFO+oy6G+tzHc6mmxHXcQLKbfgRrTRgrA==
dependencies:
commander "^4.1.1"
tsafe "^1.4.1"

json-parse-even-better-errors@^2.3.0:
version "2.3.1"
resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d"
Expand Down Expand Up @@ -1465,13 +1448,6 @@ rimraf@^3.0.2:
dependencies:
glob "^7.1.3"

run-exclusive@^2.2.15:
version "2.2.15"
resolved "https://registry.yarnpkg.com/run-exclusive/-/run-exclusive-2.2.15.tgz#8e311a741cb8def53ececf2e9d921e47abf15117"
integrity sha512-MpQTHZspu8Qcl/WtJXGn7ClQitwk8m9iQwVPqFhhYSJQF/YcEu0Btn7h1UfPXHAgcDClZsHBzg0HVGYRt8Txaw==
dependencies:
minimal-polyfills "^2.2.1"

run-exclusive@^2.2.18:
version "2.2.18"
resolved "https://registry.yarnpkg.com/run-exclusive/-/run-exclusive-2.2.18.tgz#ec930edc3a7044750dc827df9372bde8f610f586"
Expand Down Expand Up @@ -1653,20 +1629,10 @@ tr46@~0.0.3:
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=

tsafe@^0.10.0:
version "0.10.0"
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-0.10.0.tgz#c4fba365a49467ea6167e8c9482ddb94ee51b795"
integrity sha512-CFfa1uJKfU0DDRbuB8bf2mfXjkOqiTsrltexzMMLxq5gjd1LttFECNGsO8dYUALJDbShb6+f3CwAppW/wf9BrA==

tsafe@^1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.4.1.tgz#59cdad8ac41babf88e56dcd1a683ae2fb145d059"
integrity sha512-3IDBalvf6SyvHFS14UiwCWzqdSdo+Q0k2J7DZyJYaHW/iraW9DJpaBKDJpry3yQs3o/t/A+oGaRW3iVt2lKxzA==

tsafe@^1.4.3:
version "1.4.3"
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.4.3.tgz#a98ce83616f0d9c01e3c6167a2ead45ba455b2ae"
integrity sha512-KjCdgjIqsbKW9oeJGSMVC23jhWm/VXJwkaZ7jffo/WaTioLGTHJqliHe9dECEVzIACNVNs/fwtKwU8wWK4jY4g==
tsafe@^1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.6.0.tgz#48a9bd0a4c43df43d289bdfc1d89f0d7fffbd612"
integrity sha512-wlUeRBnyN3EN2chXznpLm7vBEvJLEOziDU+MN6NRlD99AkwmXgtChNQhp+V97VyRa3Bp05IaL4Cocsc7JlyEUg==

tslib@^1.8.1, tslib@^1.9.0:
version "1.14.1"
Expand Down Expand Up @@ -1697,10 +1663,10 @@ type-fest@^0.21.3:
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37"
integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==

typescript@5.0.0-dev.20230109:
version "5.0.0-dev.20230109"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.0-dev.20230109.tgz#318e60a058a81329bc3e332d279cd3b117101aa1"
integrity sha512-tS4gkJVPBUVHIc8+LtfSv3TuaJR/mpvJ9XpLTKSRlPJlhM3rCizt5jCBZLsmNdyuT5LnfsKpswMYtEGUHMdGQA==
typescript@^5.0.4:
version "5.0.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b"
integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==

universal-user-agent@^6.0.0:
version "6.0.0"
Expand Down

0 comments on commit c208dc5

Please sign in to comment.