Skip to content

Commit

Permalink
version 1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozhuobin committed Mar 17, 2023
1 parent 2f4e82f commit c282767
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lisa-plugin/zephyr",
"version": "1.7.1-beta.6",
"version": "1.7.1",
"description": "LISA plugin for Zephyr",
"main": "./lib/main.js",
"engines": {
Expand Down
11 changes: 11 additions & 0 deletions src/tasks/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ export default ({ application, cmd, got }: LisaType) => {
}

await mkdirs(PACKAGE_HOME);
if (!(await pathExists(join(PACKAGE_HOME, 'package.json')))) {
await exec(
"npm",
[
"init", "-y"
],
{
cwd: PACKAGE_HOME,
}
);
}

if (args["clear"]) {
await set("env", undefined);
Expand Down

0 comments on commit c282767

Please sign in to comment.