diff --git a/index.js b/index.js index 7ef3552..5e1df59 100755 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -#!/bin/env node +#!/usr/bin/env node /** * {} @@ -12,7 +12,7 @@ import { join } from 'path' import createServer from './lib/dev.js' import compile from './lib/prod.js' -const WORK_SPACE = process.env.PWD +const WORK_SPACE = process.cwd() const CONFIG_FILE = join(WORK_SPACE, 'vue.live.js') const SOURCE_DIR = join(WORK_SPACE, 'src') diff --git a/package.json b/package.json index dc5f516..1c10be5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bytedo/vue-live", "type": "module", - "version": "0.0.7", + "version": "0.0.10", "bin": { "vue-live": "index.js" },