From 1d168f75ec1dd3456a6a952e3d3d6d4db87f1592 Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 21 Oct 2022 14:10:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8Dwindows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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" },