2022-10-09 11:40:04 -05:00
|
|
|
{
|
|
|
|
"name": "@logto/shared",
|
2024-05-14 07:27:55 -05:00
|
|
|
"version": "3.1.1",
|
2022-10-09 11:40:04 -05:00
|
|
|
"main": "lib/index.js",
|
|
|
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
|
|
"license": "MPL-2.0",
|
2022-11-20 22:24:02 -05:00
|
|
|
"type": "module",
|
2022-10-09 11:40:04 -05:00
|
|
|
"files": [
|
|
|
|
"lib"
|
|
|
|
],
|
2022-12-12 00:43:23 -05:00
|
|
|
"exports": {
|
|
|
|
".": {
|
2023-04-04 03:23:25 -05:00
|
|
|
"import": "./lib/index.js",
|
|
|
|
"types": "./lib/index.d.ts"
|
|
|
|
},
|
|
|
|
"./universal": {
|
|
|
|
"import": "./lib/universal.js",
|
|
|
|
"types": "./lib/universal.d.ts"
|
2022-12-12 00:43:23 -05:00
|
|
|
},
|
|
|
|
"./esm": {
|
2023-04-04 03:23:25 -05:00
|
|
|
"import": "./lib/esm/index.js",
|
|
|
|
"types": "./lib/esm/index.d.ts"
|
2022-12-12 00:43:23 -05:00
|
|
|
}
|
|
|
|
},
|
2022-10-19 02:10:50 -05:00
|
|
|
"publishConfig": {
|
|
|
|
"access": "public"
|
|
|
|
},
|
2022-10-09 11:40:04 -05:00
|
|
|
"scripts": {
|
|
|
|
"precommit": "lint-staged",
|
|
|
|
"build": "rm -rf lib/ && tsc -p tsconfig.build.json",
|
2024-03-28 01:49:15 -05:00
|
|
|
"build:test": "pnpm build",
|
2022-10-09 11:40:04 -05:00
|
|
|
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
|
|
|
|
"lint": "eslint --ext .ts src",
|
2022-10-10 10:44:02 -05:00
|
|
|
"lint:report": "pnpm lint --format json --output-file report.json",
|
2022-10-09 11:40:04 -05:00
|
|
|
"prepack": "pnpm build",
|
2024-03-28 01:49:15 -05:00
|
|
|
"test": "vitest src",
|
|
|
|
"test:ci": "pnpm run test --silent --coverage"
|
2022-10-09 11:40:04 -05:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2024-03-28 01:49:15 -05:00
|
|
|
"@jest/globals": "^29.7.0",
|
2024-04-18 07:26:37 -05:00
|
|
|
"@silverhand/eslint-config": "6.0.1",
|
|
|
|
"@silverhand/ts-config": "6.0.0",
|
2023-12-10 20:10:53 -05:00
|
|
|
"@types/node": "^20.9.5",
|
2024-07-14 09:58:09 -05:00
|
|
|
"@vitest/coverage-v8": "^2.0.0",
|
2024-04-18 07:26:37 -05:00
|
|
|
"eslint": "^8.56.0",
|
2023-10-25 20:55:47 -05:00
|
|
|
"lint-staged": "^15.0.0",
|
2023-07-07 12:17:21 -05:00
|
|
|
"prettier": "^3.0.0",
|
2024-03-28 01:49:15 -05:00
|
|
|
"typescript": "^5.3.3",
|
2024-07-14 09:58:09 -05:00
|
|
|
"vitest": "^2.0.0"
|
2022-10-09 11:40:04 -05:00
|
|
|
},
|
|
|
|
"engines": {
|
2023-12-10 20:10:53 -05:00
|
|
|
"node": "^20.9.0"
|
2022-10-09 11:40:04 -05:00
|
|
|
},
|
|
|
|
"eslintConfig": {
|
|
|
|
"extends": "@silverhand",
|
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/ban-types": "off"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"prettier": "@silverhand/eslint-config/.prettierrc",
|
|
|
|
"dependencies": {
|
2024-05-17 03:02:05 -05:00
|
|
|
"@silverhand/essentials": "^2.9.1",
|
2024-07-12 07:53:42 -05:00
|
|
|
"chalk": "^5.3.0",
|
2023-12-25 22:16:35 -05:00
|
|
|
"find-up": "^7.0.0",
|
2023-12-12 22:01:07 -05:00
|
|
|
"libphonenumber-js": "^1.9.49",
|
2024-03-15 11:50:10 -05:00
|
|
|
"nanoid": "^5.0.1"
|
2022-10-09 11:40:04 -05:00
|
|
|
}
|
|
|
|
}
|