适配ohpm

Signed-off-by: chenlang10 <18577333310@163.com>
This commit is contained in:
chenlang10 2023-09-27 11:20:29 +08:00
parent 86e3d8d7d3
commit 807ea43887
6 changed files with 12 additions and 10 deletions

View File

@ -1,6 +1,6 @@
{
"hvigorVersion": "3.0.2",
"hvigorVersion": "2.1.1",
"dependencies": {
"@ohos/hvigor-ohos-plugin": "3.0.2"
"@ohos/hvigor-ohos-plugin": "2.1.1"
}
}

File diff suppressed because one or more lines are too long

View File

@ -2,15 +2,15 @@
# ----------------------------------------------------------------------------
# Hvigor startup script, version 1.0.0
#
#
# Required ENV vars:
# ------------------
# NODE_HOME - location of a Node home dir
# or
# or
# Add /usr/local/nodejs/bin to the PATH environment variable
# ----------------------------------------------------------------------------
HVIGOR_APP_HOME="`pwd -P`"
HVIGOR_APP_HOME=$(dirname $(readlink -f $0))
HVIGOR_WRAPPER_SCRIPT=${HVIGOR_APP_HOME}/hvigor/hvigor-wrapper.js
warn() {
echo ""

View File

@ -51,7 +51,7 @@ goto fail
:execute
@rem Execute hvigor
"%NODE_EXE%" "%WRAPPER_MODULE_PATH%" %*
"%NODE_EXE%" %WRAPPER_MODULE_PATH% %*
if "%ERRORLEVEL%" == "0" goto hvigorwEnd

View File

@ -7,5 +7,6 @@
"description": "example description",
"repository": {},
"version": "1.0.0",
"dependencies": {}
}
"dependencies": {
}
}

View File

@ -6,4 +6,4 @@
"repository": {},
"version": "1.0.0",
"dependencies": {}
}
}