Skip to content

Commit 9334658

Browse files
fixed issues in publishing custom plugin
1 parent 6170b11 commit 9334658

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

client/packages/lowcoder-cli-template-typescript/README-template.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,13 @@ yarn build
2525

2626
npm run build
2727
```
28+
29+
## Publish
30+
To publish your plugin on NPM, use following command.
31+
```bash
32+
yarn build_publish
33+
34+
# or
35+
36+
npm run build_publish
37+
```

client/packages/lowcoder-cli-template-typescript/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "lowcoder-cli-template-typescript",
3-
"version": "0.0.13",
3+
"version": "0.0.14",
44
"type": "module",
55
"scripts": {
66
"start": "vite",
7-
"build": "lowcoder-cli build"
7+
"build": "lowcoder-cli build",
8+
"build_publish": "lowcoder-cli build --publish"
89
},
910
"lowcoder": {
1011
"description": "",

client/packages/lowcoder-cli/actions/init.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export default async function initAction(options) {
7878
appPackageJson.scripts = {
7979
start: "vite",
8080
build: "lowcoder-cli build",
81+
build_publish: "lowcoder-cli build --publish",
8182
};
8283
fs.writeFileSync(paths.appPackageJson, JSON.stringify(appPackageJson, null, 2));
8384
console.log("package.json updated");

client/packages/lowcoder-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "lowcoder-cli",
33
"description": "CLI tool used to start build publish lowcoder components",
4-
"version": "0.0.26",
4+
"version": "0.0.27",
55
"license": "MIT",
66
"bin": "./index.js",
77
"type": "module",

0 commit comments

Comments
 (0)