Skip to content

Commit

Permalink
Removed rollup config in favour of esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-koan committed Nov 2, 2023
1 parent 8a488a9 commit 961239e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 80 deletions.
10 changes: 2 additions & 8 deletions packages/limit-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
"dev": "echo \"Implement me!\"",
"test": "TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha --require ts-node/register './test/**/*.test.ts'",
"lint": "eslint . --cache",
"build": "rollup -c --configPlugin @rollup/plugin-typescript && tsc --declaration --emitDeclarationOnly --declarationDir ./types",
"build:esbuild": "yarn build:cjs && yarn build:es && yarn build:types",
"build:cjs": "yarn esbuild src/*.ts --target=es2020 --bundle --external:@tryghost/errors --outdir=cjs --format=cjs",
"build": "yarn build:cjs && yarn build:es && yarn build:types",
"build:cjs": "yarn esbuild src/*.ts --target=es2020 --bundle --external:@tryghost/errors --outdir=cjs --format=cjs --footer:js=\"module.exports = module.exports.default;\"",
"build:es": "yarn esbuild src/*.ts --target=es2020 --bundle --external:@tryghost/errors --outdir=es --format=esm",
"build:types": "tsc --emitDeclarationOnly --declaration --declarationMap --outDir types",
"prepare": "NODE_ENV=production yarn build",
Expand All @@ -33,17 +32,12 @@
"access": "public"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "11.1.5",
"@types/mocha": "^10.0.3",
"@types/sinon": "^10.0.20",
"c8": "8.0.1",
"date-fns": "^2.30.0",
"esbuild": "^0.19.5",
"mocha": "10.2.0",
"rollup": "2.79.1",
"rollup-plugin-commonjs": "10.1.0",
"rollup-plugin-node-resolve": "5.2.0",
"should": "13.2.3",
"sinon": "17.0.1",
"ts-node": "^10.9.1",
Expand Down
44 changes: 0 additions & 44 deletions packages/limit-service/rollup.config.ts

This file was deleted.

29 changes: 1 addition & 28 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1027,11 +1027,6 @@
dependencies:
"@jridgewell/trace-mapping" "0.3.9"

"@date-fns/utc@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@date-fns/utc/-/utc-1.1.0.tgz#5b0048f9fd0bbbe7844a307adc1316b3b473e2e2"
integrity sha512-b56U3yaziw3yBDWj0OVq+KrAVZxkQrXXjV6nygP8myG7MxR97aB8SJCRCi9WE357u3FlvIowxr960h5kj2Heqg==

"@ember-data/rfc395-data@^0.0.4":
version "0.0.4"
resolved "https://registry.yarnpkg.com/@ember-data/rfc395-data/-/rfc395-data-0.0.4.tgz#ecb86efdf5d7733a76ff14ea651a1b0ed1f8a843"
Expand Down Expand Up @@ -1944,18 +1939,6 @@
dependencies:
"@rollup/pluginutils" "^5.0.1"

"@rollup/plugin-node-resolve@^15.2.3":
version "15.2.3"
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.3.tgz#e5e0b059bd85ca57489492f295ce88c2d4b0daf9"
integrity sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==
dependencies:
"@rollup/pluginutils" "^5.0.1"
"@types/resolve" "1.20.2"
deepmerge "^4.2.2"
is-builtin-module "^3.2.1"
is-module "^1.0.0"
resolve "^1.22.1"

"@rollup/[email protected]":
version "11.1.5"
resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-11.1.5.tgz#039c763bf943a5921f3f42be255895e75764cb91"
Expand Down Expand Up @@ -3156,11 +3139,6 @@
dependencies:
"@types/node" "*"

"@types/[email protected]":
version "1.20.2"
resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.20.2.tgz#97d26e00cd4a0423b4af620abecf3e6f442b7975"
integrity sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==

"@types/responselike@^1.0.0":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@types/responselike/-/responselike-1.0.2.tgz#8de1b0477fd7c12df77e50832fa51701a8414bd6"
Expand Down Expand Up @@ -4686,11 +4664,6 @@ deep-is@^0.1.3, 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==

deepmerge@^4.2.2:
version "4.3.1"
resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a"
integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==

defaults@^1.0.3:
version "1.0.4"
resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.4.tgz#b0b02062c1e2aa62ff5d9528f0f98baa90978d7a"
Expand Down Expand Up @@ -6622,7 +6595,7 @@ is-buffer@^2.0.0:
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191"
integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==

is-builtin-module@^3.1.0, is-builtin-module@^3.2.1:
is-builtin-module@^3.1.0:
version "3.2.1"
resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-3.2.1.tgz#f03271717d8654cfcaf07ab0463faa3571581169"
integrity sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==
Expand Down

0 comments on commit 961239e

Please sign in to comment.