2024-07-14 22:43:48 -05:00
|
|
|
{
|
|
|
|
"name": "@logto/elements",
|
2024-09-13 05:06:50 -05:00
|
|
|
"version": "0.0.1",
|
2024-07-14 22:43:48 -05:00
|
|
|
"description": "Logto user interface elements.",
|
|
|
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
|
|
"homepage": "https://github.com/logto-io/logto#readme",
|
|
|
|
"license": "MPL-2.0",
|
|
|
|
"type": "module",
|
|
|
|
"private": true,
|
|
|
|
"main": "dist/index.js",
|
2024-07-16 01:55:47 -05:00
|
|
|
"module": "dist/index.js",
|
2024-07-14 22:43:48 -05:00
|
|
|
"exports": {
|
|
|
|
".": {
|
|
|
|
"import": "./dist/index.js",
|
|
|
|
"types": "./dist/index.d.ts"
|
|
|
|
},
|
|
|
|
"./react": {
|
|
|
|
"import": "./dist/react.js",
|
|
|
|
"types": "./dist/react.d.ts"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"files": [
|
|
|
|
"dist"
|
|
|
|
],
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git+https://github.com/logto-io/logto.git"
|
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"precommit": "lint-staged",
|
2024-07-18 21:42:03 -05:00
|
|
|
"build:only": "lit-localize build && tsup",
|
|
|
|
"build": "pnpm check && pnpm build:only",
|
2024-07-16 01:55:47 -05:00
|
|
|
"start": "web-dev-server",
|
2024-07-15 06:00:18 -05:00
|
|
|
"dev": "lit-localize build && tsup --watch --no-splitting",
|
2024-07-14 22:43:48 -05:00
|
|
|
"lint": "eslint --ext .ts src",
|
|
|
|
"lint:report": "pnpm lint --format json --output-file report.json",
|
|
|
|
"test": "echo \"No tests yet.\"",
|
|
|
|
"test:ci": "pnpm run test --silent --coverage",
|
2024-07-18 21:42:03 -05:00
|
|
|
"prepack": "pnpm build:only",
|
2024-07-15 06:00:18 -05:00
|
|
|
"localize": "lit-localize",
|
2024-07-20 10:01:58 -05:00
|
|
|
"check": "if command -v git &> /dev/null; then lit-localize extract && git add . -N && git diff --exit-code; fi"
|
2024-07-14 22:43:48 -05:00
|
|
|
},
|
|
|
|
"engines": {
|
|
|
|
"node": "^20.9.0"
|
|
|
|
},
|
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/logto-io/logto/issues"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
2024-07-18 21:42:03 -05:00
|
|
|
"@lit/context": "^1.1.2",
|
2024-07-14 22:43:48 -05:00
|
|
|
"@lit/localize": "^0.12.1",
|
|
|
|
"@lit/react": "^1.0.5",
|
|
|
|
"@silverhand/essentials": "^2.9.1",
|
2024-07-19 04:46:55 -05:00
|
|
|
"ky": "^1.2.3",
|
2024-07-14 22:43:48 -05:00
|
|
|
"lit": "^3.1.4"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
2024-07-15 06:00:18 -05:00
|
|
|
"@lit/localize-tools": "^0.7.2",
|
2024-09-13 05:06:50 -05:00
|
|
|
"@logto/schemas": "workspace:^1.20.0",
|
2024-07-14 22:43:48 -05:00
|
|
|
"@silverhand/eslint-config": "6.0.1",
|
|
|
|
"@silverhand/ts-config": "6.0.0",
|
2024-07-18 21:42:03 -05:00
|
|
|
"@types/node": "^20.9.5",
|
2024-07-16 01:55:47 -05:00
|
|
|
"@web/dev-server": "^0.4.6",
|
|
|
|
"@web/dev-server-esbuild": "^1.0.2",
|
2024-07-14 22:43:48 -05:00
|
|
|
"eslint": "^8.56.0",
|
|
|
|
"lint-staged": "^15.0.0",
|
|
|
|
"prettier": "^3.0.0",
|
|
|
|
"tsup": "^8.1.0"
|
|
|
|
},
|
|
|
|
"eslintConfig": {
|
|
|
|
"extends": "@silverhand",
|
2024-07-15 06:00:18 -05:00
|
|
|
"ignorePatterns": [
|
|
|
|
"src/generated/"
|
|
|
|
],
|
2024-07-14 22:43:48 -05:00
|
|
|
"rules": {
|
|
|
|
"no-console": "error",
|
|
|
|
"unicorn/prevent-abbreviations": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"replacements": {
|
|
|
|
"var": false,
|
|
|
|
"vars": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"prettier": "@silverhand/eslint-config/.prettierrc"
|
|
|
|
}
|