mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-20 05:29:17 +00:00
feat: disable folder name check in cli package
In the new extension loading design, we don't require the folder name to match extension identifier
This commit is contained in:
parent
59855992d7
commit
7c68a8d70f
@ -1,5 +1,11 @@
|
|||||||
# kksh
|
# kksh
|
||||||
|
|
||||||
|
## 0.0.29
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Disable check for folder name. identifier and folder name no longer need to be the same.
|
||||||
|
|
||||||
## 0.0.28
|
## 0.0.28
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "kksh",
|
"name": "kksh",
|
||||||
"module": "dist/cli.js",
|
"module": "dist/cli.js",
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
"kksh": "./dist/cli.js",
|
"kksh": "./dist/cli.js",
|
||||||
@ -10,7 +10,8 @@
|
|||||||
"author": "Huakun",
|
"author": "Huakun",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "bun build.ts",
|
"build": "bun build.ts",
|
||||||
"test": "cross-env NODE_ENV=test bun test --coverage"
|
"test": "cross-env NODE_ENV=test bun test --coverage",
|
||||||
|
"check-types": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/bun": "latest",
|
"@types/bun": "latest",
|
||||||
|
@ -66,18 +66,12 @@ export function verifySingleProject(projectPath: string): boolean {
|
|||||||
pkg.kunkun.identifier = folderName
|
pkg.kunkun.identifier = folderName
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
if (pkg.kunkun.identifier !== folderName) {
|
for (const cmd of pkg.kunkun.customUiCmds ?? []) {
|
||||||
logger.error(
|
|
||||||
`Extension package name at [pkg.kunkun.identifier](${pkg.kunkun.identifier}) is not the same as the folder name [${folderName}], please fix it`
|
|
||||||
)
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
for (const cmd of pkg.kunkun.customUiCmds) {
|
|
||||||
if (!verifyCustomUiCommand(projectPath, cmd)) {
|
if (!verifyCustomUiCommand(projectPath, cmd)) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const cmd of pkg.kunkun.templateUiCmds) {
|
for (const cmd of pkg.kunkun.templateUiCmds ?? []) {
|
||||||
if (!verifyTemplateUiCommand(projectPath, cmd)) {
|
if (!verifyTemplateUiCommand(projectPath, cmd)) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user