mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
chore: add preinstall script to packages
This commit is contained in:
parent
b66f2e96df
commit
2c6a64892a
5 changed files with 5 additions and 7 deletions
|
@ -7,6 +7,7 @@
|
|||
"license": "UNLICENSED",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"precommit": "lint-staged",
|
||||
"build": "rm -rf build/ && tsc",
|
||||
"lint": "eslint --format pretty --ext .ts src",
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
"url": "git+https://github.com/logto-io/logto.git"
|
||||
},
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"build": "rm -rf lib/ && tsc",
|
||||
"lint": "eslint --format pretty \"src/**\"",
|
||||
"prepack": "pnpm build"
|
||||
|
@ -33,8 +34,5 @@
|
|||
"eslintConfig": {
|
||||
"extends": "@logto"
|
||||
},
|
||||
"prettier": "@logto/eslint-config/.prettierrc",
|
||||
"dependencies": {
|
||||
"@logto/schemas": "^0.1.0"
|
||||
}
|
||||
"prettier": "@logto/eslint-config/.prettierrc"
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
],
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"generate": "ts-node src/gen/index.ts && eslint --format pretty \"src/db-entries/**\" --fix",
|
||||
"build": "pnpm generate && rm -rf lib/ && tsc --p tsconfig.build.json",
|
||||
"lint": "eslint --format pretty \"src/**\"",
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"license": "UNLICENSED",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"precommit": "lint-staged",
|
||||
"dev:tsc": "tsc -b -w --preserveWatchOutput",
|
||||
"dev:razzle": "razzle start",
|
||||
|
|
|
@ -106,14 +106,11 @@ importers:
|
|||
packages/phrases:
|
||||
specifiers:
|
||||
'@logto/eslint-config': ^0.1.0-rc.14
|
||||
'@logto/schemas': ^0.1.0
|
||||
'@logto/ts-config': ^0.1.0-rc.14
|
||||
eslint: ^7.31.0
|
||||
eslint-formatter-pretty: ^4.1.0
|
||||
prettier: ^2.3.2
|
||||
typescript: ^4.3.5
|
||||
dependencies:
|
||||
'@logto/schemas': link:../schemas
|
||||
devDependencies:
|
||||
'@logto/eslint-config': 0.1.0-rc.14_aa6010e91de57dec3f7388187c7addf8
|
||||
'@logto/ts-config': 0.1.0-rc.14_f847e35c67ce67b1737c27c823675243
|
||||
|
|
Loading…
Reference in a new issue