2022-10-10 00:40:04 +08:00
|
|
|
{
|
|
|
|
"name": "@logto/shared",
|
2023-10-07 13:39:33 +08:00
|
|
|
"version": "3.0.0",
|
2022-10-10 00:40:04 +08:00
|
|
|
"main": "lib/index.js",
|
|
|
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
|
|
"license": "MPL-2.0",
|
2022-11-21 11:24:02 +08:00
|
|
|
"type": "module",
|
2022-10-10 00:40:04 +08:00
|
|
|
"files": [
|
|
|
|
"lib"
|
|
|
|
],
|
2022-12-12 13:43:23 +08:00
|
|
|
"exports": {
|
|
|
|
".": {
|
2023-04-04 16:23:25 +08:00
|
|
|
"import": "./lib/index.js",
|
|
|
|
"types": "./lib/index.d.ts"
|
|
|
|
},
|
|
|
|
"./universal": {
|
|
|
|
"import": "./lib/universal.js",
|
|
|
|
"types": "./lib/universal.d.ts"
|
2022-12-12 13:43:23 +08:00
|
|
|
},
|
|
|
|
"./esm": {
|
2023-04-04 16:23:25 +08:00
|
|
|
"import": "./lib/esm/index.js",
|
|
|
|
"types": "./lib/esm/index.d.ts"
|
2022-12-12 13:43:23 +08:00
|
|
|
}
|
|
|
|
},
|
2022-10-19 15:10:50 +08:00
|
|
|
"publishConfig": {
|
|
|
|
"access": "public"
|
|
|
|
},
|
2022-10-10 00:40:04 +08:00
|
|
|
"scripts": {
|
|
|
|
"precommit": "lint-staged",
|
|
|
|
"build": "rm -rf lib/ && tsc -p tsconfig.build.json",
|
2022-12-11 20:07:21 +08:00
|
|
|
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap",
|
2022-10-10 00:40:04 +08:00
|
|
|
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
|
|
|
|
"lint": "eslint --ext .ts src",
|
2022-10-10 23:44:02 +08:00
|
|
|
"lint:report": "pnpm lint --format json --output-file report.json",
|
2022-10-10 00:40:04 +08:00
|
|
|
"prepack": "pnpm build",
|
2022-12-11 20:07:21 +08:00
|
|
|
"test:only": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
|
|
"test": "pnpm build:test && pnpm test:only",
|
2022-12-15 01:50:29 +08:00
|
|
|
"test:ci": "pnpm test:only"
|
2022-10-10 00:40:04 +08:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2023-11-03 13:14:52 +08:00
|
|
|
"@logto/connector-kit": "workspace:^2.0.0",
|
2023-12-22 15:16:49 +08:00
|
|
|
"@silverhand/eslint-config": "5.0.0",
|
|
|
|
"@silverhand/ts-config": "5.0.0",
|
2023-03-07 14:54:57 +08:00
|
|
|
"@types/jest": "^29.4.0",
|
2023-12-11 09:10:53 +08:00
|
|
|
"@types/node": "^20.9.5",
|
2023-07-08 01:17:21 +08:00
|
|
|
"eslint": "^8.44.0",
|
2023-12-22 15:16:49 +08:00
|
|
|
"jest": "^29.7.0",
|
2023-10-26 09:55:47 +08:00
|
|
|
"lint-staged": "^15.0.0",
|
2023-07-08 01:17:21 +08:00
|
|
|
"prettier": "^3.0.0",
|
2023-12-22 15:16:49 +08:00
|
|
|
"typescript": "^5.3.3"
|
2022-10-10 00:40:04 +08:00
|
|
|
},
|
|
|
|
"engines": {
|
2023-12-11 09:10:53 +08:00
|
|
|
"node": "^20.9.0"
|
2022-10-10 00:40:04 +08:00
|
|
|
},
|
|
|
|
"eslintConfig": {
|
|
|
|
"extends": "@silverhand",
|
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/ban-types": "off"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"prettier": "@silverhand/eslint-config/.prettierrc",
|
|
|
|
"dependencies": {
|
2023-09-03 02:11:22 +08:00
|
|
|
"@silverhand/essentials": "^2.8.4",
|
2023-03-03 14:11:19 +08:00
|
|
|
"chalk": "^5.0.0",
|
2023-12-26 03:16:35 +00:00
|
|
|
"find-up": "^7.0.0",
|
2023-12-13 12:01:07 +09:00
|
|
|
"libphonenumber-js": "^1.9.49",
|
2023-10-08 00:42:32 -05:00
|
|
|
"nanoid": "^5.0.1",
|
2022-10-10 00:40:04 +08:00
|
|
|
"slonik": "^30.0.0"
|
|
|
|
}
|
|
|
|
}
|