2024-07-14 22:43:48 -05:00
|
|
|
{
|
|
|
|
"name": "@logto/elements",
|
|
|
|
"version": "0.0.0",
|
|
|
|
"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-15 06:00:18 -05:00
|
|
|
"build": "lit-localize build && tsup",
|
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-16 01:55:47 -05:00
|
|
|
"prepublishOnly": "pnpm check",
|
|
|
|
"prepack": "pnpm build",
|
2024-07-15 06:00:18 -05:00
|
|
|
"localize": "lit-localize",
|
|
|
|
"check": "lit-localize extract && git add . -N && git diff --exit-code"
|
2024-07-14 22:43:48 -05:00
|
|
|
},
|
|
|
|
"engines": {
|
|
|
|
"node": "^20.9.0"
|
|
|
|
},
|
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/logto-io/logto/issues"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"@lit/localize": "^0.12.1",
|
|
|
|
"@lit/react": "^1.0.5",
|
|
|
|
"@silverhand/essentials": "^2.9.1",
|
|
|
|
"lit": "^3.1.4"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
2024-07-15 06:00:18 -05:00
|
|
|
"@lit/localize-tools": "^0.7.2",
|
2024-07-14 22:43:48 -05:00
|
|
|
"@silverhand/eslint-config": "6.0.1",
|
|
|
|
"@silverhand/ts-config": "6.0.0",
|
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"
|
|
|
|
}
|