Commit d6f9c643 authored by yann300's avatar yann300

fix remixd build

parent 4e383eb7
...@@ -12,7 +12,7 @@ import * as program from 'commander' ...@@ -12,7 +12,7 @@ import * as program from 'commander'
async function warnLatestVersion () { async function warnLatestVersion () {
const latest = await latestVersion('@remix-project/remixd') const latest = await latestVersion('@remix-project/remixd')
const pjson = require('../package.json') const pjson = require('../../package.json')
if (semver.eq(latest, pjson.version)) { if (semver.eq(latest, pjson.version)) {
console.log('\x1b[32m%s\x1b[0m', `[INFO] you are using the latest version ${latest}`) console.log('\x1b[32m%s\x1b[0m', `[INFO] you are using the latest version ${latest}`)
} else if (semver.gt(latest, pjson.version)) { } else if (semver.gt(latest, pjson.version)) {
...@@ -54,7 +54,7 @@ function errorHandler (error: any, service: string) { ...@@ -54,7 +54,7 @@ function errorHandler (error: any, service: string) {
} }
(async () => { (async () => {
const { version } = require('../package.json') const { version } = require('../../package.json')
program.version(version, '-v, --version') program.version(version, '-v, --version')
program program
......
...@@ -462,7 +462,7 @@ ...@@ -462,7 +462,7 @@
"options": { "options": {
"commands": [ "commands": [
{ {
"command": "SERVE_SCRIPT='chmod +x dist/libs/remixd/bin/remixd.js; dist/libs/remixd/bin/remixd.js '; if [ {args.folder} != undefined ]; then SERVE_SCRIPT=${SERVE_SCRIPT}' -s {args.folder}'; fi; if [ {args.remixide} != undefined ]; then SERVE_SCRIPT=${SERVE_SCRIPT}' --remix-ide {args.remixide}'; fi; eval $SERVE_SCRIPT;" "command": "SERVE_SCRIPT='chmod +x dist/libs/remixd/src/bin/remixd.js; dist/libs/remixd/src/bin/remixd.js '; if [ {args.folder} != undefined ]; then SERVE_SCRIPT=${SERVE_SCRIPT}' -s {args.folder}'; fi; if [ {args.remixide} != undefined ]; then SERVE_SCRIPT=${SERVE_SCRIPT}' --remix-ide {args.remixide}'; fi; eval $SERVE_SCRIPT;"
} }
] ]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment