0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

refactor(connector): use tsup for building

This commit is contained in:
Gao Sun 2024-07-28 13:15:09 +08:00
parent 8a29943c4d
commit 510f681fa1
No known key found for this signature in database
GPG key ID: 13EBE123E4773688
46 changed files with 332 additions and 1295 deletions

View file

@ -0,0 +1,46 @@
---
"@logto/connector-mock-standard-email": minor
"@logto/connector-logto-social-demo": minor
"@logto/connector-sendgrid-email": minor
"@logto/connector-alipay-native": minor
"@logto/connector-wechat-native": minor
"@logto/connector-dingtalk-web": minor
"@logto/connector-huggingface": minor
"@logto/connector-logto-email": minor
"@logto/connector-mock-social": minor
"@logto/connector-tencent-sms": minor
"@logto/connector-alipay-web": minor
"@logto/connector-aliyun-sms": minor
"@logto/connector-feishu-web": minor
"@logto/connector-mock-email": minor
"@logto/connector-twilio-sms": minor
"@logto/connector-wechat-web": minor
"@logto/connector-aliyun-dm": minor
"@logto/connector-logto-sms": minor
"@logto/connector-facebook": minor
"@logto/connector-mock-sms": minor
"@logto/connector-aws-ses": minor
"@logto/connector-azuread": minor
"@logto/connector-discord": minor
"@logto/connector-mailgun": minor
"@logto/connector-smsaero": minor
"@logto/connector-github": minor
"@logto/connector-google": minor
"@logto/connector-oauth": minor
"@logto/connector-apple": minor
"@logto/connector-kakao": minor
"@logto/connector-naver": minor
"@logto/connector-wecom": minor
"@logto/connector-oidc": minor
"@logto/connector-saml": minor
"@logto/connector-smtp": minor
"@logto/integration-tests": minor
"@logto/schemas": minor
"@logto/core": minor
---
use tsup for building
We've updated some of the packages to use `tsup` for building. This will make the build process faster, and should not affect the functionality of the packages.
Use minor version bump to catch your attention.

View file

@ -1,7 +1,6 @@
# generated files # generated files
/*/tsconfig.* /*/tsconfig.*
/*/rollup.config.* /*/*.config.*
/*/vitest.config.*
# keep templates # keep templates
!/templates/** !/templates/**

View file

@ -13,10 +13,6 @@
"zod": "^3.23.8" "zod": "^3.23.8"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@shopify/jest-koa-mocks": "^5.0.0", "@shopify/jest-koa-mocks": "^5.0.0",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
@ -27,9 +23,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
}, },
@ -46,9 +41,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",

View file

@ -12,10 +12,6 @@
"zod": "^3.23.8" "zod": "^3.23.8"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@shopify/jest-koa-mocks": "^5.0.0", "@shopify/jest-koa-mocks": "^5.0.0",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
@ -26,9 +22,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
}, },
@ -45,9 +40,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",

View file

@ -22,9 +22,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -51,10 +50,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -64,9 +59,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -22,9 +22,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -51,10 +50,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -64,9 +59,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -24,9 +24,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -53,10 +52,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -66,9 +61,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -25,9 +25,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -54,10 +53,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -67,9 +62,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -24,9 +24,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -53,10 +52,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -66,9 +61,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -12,10 +12,6 @@
"zod": "^3.23.8" "zod": "^3.23.8"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@shopify/jest-koa-mocks": "^5.0.0", "@shopify/jest-koa-mocks": "^5.0.0",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
@ -26,9 +22,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
}, },
@ -45,9 +40,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -24,9 +24,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -53,10 +52,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -66,9 +61,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "14.0.0-beta.7", "nock": "14.0.0-beta.7",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -24,9 +24,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -53,10 +52,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -66,9 +61,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "14.0.0-beta.7", "nock": "14.0.0-beta.7",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -53,10 +52,6 @@
}, },
"devDependencies": { "devDependencies": {
"@logto/cloud": "0.2.5-3b703da", "@logto/cloud": "0.2.5-3b703da",
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -66,9 +61,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -12,9 +12,8 @@
}, },
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -12,9 +12,8 @@
}, },
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -12,9 +12,8 @@
}, },
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -12,9 +12,8 @@
}, },
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -26,15 +26,15 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup && tsc --declaration --emitDeclarationOnly",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
"test:ci": "pnpm run test --silent --coverage", "test:ci": "pnpm run test --silent --coverage",
"prepublishOnly": "pnpm build", "prepublishOnly": "pnpm build",
"prepack": "pnpm build" "prepack": "pnpm build",
"build:test": "pnpm build"
}, },
"engines": { "engines": {
"node": "^20.9.0" "node": "^20.9.0"
@ -56,10 +56,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -69,9 +65,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "14.0.0-beta.7", "nock": "14.0.0-beta.7",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -26,9 +26,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -55,10 +54,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -68,9 +63,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "14.0.0-beta.7", "nock": "14.0.0-beta.7",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -25,9 +25,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -54,10 +53,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -67,9 +62,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -12,10 +12,6 @@
"zod": "^3.23.8" "zod": "^3.23.8"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -26,9 +22,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
}, },
@ -45,9 +40,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.11.20", "@types/node": "^20.11.20",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -23,9 +23,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",
@ -52,10 +51,6 @@
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@silverhand/eslint-config": "6.0.1", "@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0", "@silverhand/ts-config": "6.0.0",
"@types/node": "^20.10.4", "@types/node": "^20.10.4",
@ -65,9 +60,8 @@
"lint-staged": "^15.0.2", "lint-staged": "^15.0.2",
"nock": "^13.3.1", "nock": "^13.3.1",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"rollup": "^4.12.0",
"rollup-plugin-output-size": "^1.3.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"vitest": "^2.0.0" "vitest": "^2.0.0"
} }

View file

@ -12,9 +12,8 @@
], ],
"scripts": { "scripts": {
"precommit": "lint-staged", "precommit": "lint-staged",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap", "build": "tsup",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c", "dev": "tsup --watch",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src", "lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json", "lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src", "test": "vitest src",

View file

@ -1,25 +0,0 @@
import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import typescript from '@rollup/plugin-typescript';
import outputSize from 'rollup-plugin-output-size';
/**
* @type {import('rollup').RollupOptions}
*/
const configs = [
{
input: ['src/index.ts'],
output: [{ dir: 'lib' }],
external: ['zod', 'got', '@logto/connector-kit'],
plugins: [
typescript({ tsconfig: 'tsconfig.build.json' }),
nodeResolve({ exportConditions: ['node'], preferBuiltins: true }),
commonjs(),
json(),
outputSize(),
],
},
];
export default configs;

View file

@ -1,9 +0,0 @@
{
"extends": "@silverhand/ts-config/tsconfig.base",
"compilerOptions": {
"moduleResolution": "nodenext",
"module": "nodenext",
"outDir": "lib",
"baseUrl": "."
}
}

View file

@ -1,5 +0,0 @@
{
"extends": "./tsconfig.base",
"include": ["src"],
"exclude": ["src/**/*.test.ts"]
}

View file

@ -1,7 +1,16 @@
{ {
"extends": "./tsconfig.base", "extends": "@silverhand/ts-config/tsconfig.base",
"compilerOptions": { "compilerOptions": {
"types": ["node", "vitest/globals"] "moduleResolution": "nodenext",
"module": "nodenext",
"outDir": "lib",
"baseUrl": ".",
"types": [
"node",
"vitest/globals"
]
}, },
"include": ["src", "types"] "include": [
"src"
]
} }

View file

@ -1,7 +0,0 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"isolatedModules": false,
"allowJs": true,
}
}

View file

@ -0,0 +1,5 @@
import { defineConfig } from 'tsup';
import { defaultConfig } from '../../../tsup.shared.config.js';
export default defineConfig(defaultConfig);

View file

@ -20,7 +20,7 @@ const templateKeys = Object.keys(templateJson);
* Value format: `{ "<connector-name>": ["<script-name>"] }` * Value format: `{ "<connector-name>": ["<script-name>"] }`
* Example: `{ "connector-oauth2": ["prepack"] }` * Example: `{ "connector-oauth2": ["prepack"] }`
*/ */
const scriptExceptions = { 'connector-oauth2': ['prepack'] }; const scriptExceptions = { 'connector-oauth2': ['prepack', 'build', 'build:test'] };
const sync = async () => { const sync = async () => {
const packagesDirectory = './'; const packagesDirectory = './';

File diff suppressed because it is too large Load diff