ura-components/package.json

92 lines
2.1 KiB
JSON

{
"name": "star-element",
"private": true,
"version": "0.0.1",
"type": "module",
"main": "dist/my-element.es.js",
"types": "types/my-element.d.ts",
"files": [
"dist",
"types"
],
"scripts": {
"dev": "vite",
"build": "wireit",
"build-ts-modules": "wireit",
"build-ts-with-config": "wireit",
"build-ts-widgets": "wireit",
"build:ts": "yarn tsc --build tsconfig-all.json",
"build:vite": "vite build && yarn build:widgets",
"build:widgets": "node ./tasks/build-widgets.js",
"esbuild:ts": "node ./tasks/esbuild-packages.js",
"format": "npm run format:prettier",
"format:prettier": "prettier \"**/*.{cjs,html,js,json,md,ts}\" --write",
"postinstall": "husky install"
},
"wireit": {
"build": {
"dependencies": [
"../:install-dep",
"build-ts-modules",
"build-ts-with-config",
"build-ts-widgets"
]
},
"build-ts-modules": {
"command": "node tasks/esbuild-packages.js",
"files": [
"tasks/esbuild-packages.js",
"src/components/**/*.ts",
"src/lib/**/*.ts"
],
"output": [],
"dependencies": [
"build-ts-with-config"
]
},
"build-ts-with-config": {
"command": "yarn tsc --build tsconfig-all.json",
"files": [
"src/**/*.ts"
],
"output": []
},
"build-ts-widgets": {
"command": "node ./tasks/build-widgets.js",
"files": [
"tasks/build-widgets.js",
"src/components/**/*.ts",
"src/widgets/**/*.ts"
],
"output": [],
"dependencies": [
"build-ts-modules"
]
}
},
"lint-staged": {
"*.{cjs,html,js,json,md,ts}": [
"prettier --write",
"git add"
]
},
"dependencies": {
"lit": "^2.2.7"
},
"devDependencies": {
"esbuild": "^0.15.8",
"fast-glob": "^3.2.12",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"tslib": "^2.4.0",
"typescript": "^4.8.3",
"vite": "^3.0.0",
"wireit": "^0.9.1"
},
"workspaces": [
"src/components/*",
"src/lib/*"
]
}