alan-compile
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -123,3 +123,3 @@ "use strict"; | ||
} | ||
if (pathRoot === "/") { | ||
if (pathRoot === "/" || /[A-Z]:\\/.test(pathRoot)) { | ||
pathRoot = null; | ||
@@ -156,3 +156,3 @@ } | ||
} | ||
if (pathRoot === "/") { | ||
if (pathRoot === "/" || /[A-Z]:\\/.test(pathRoot)) { | ||
pathRoot = null; | ||
@@ -159,0 +159,0 @@ } |
{ | ||
"name": "alan-compile", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Compile of alan to amm and javascript", | ||
@@ -9,3 +9,3 @@ "scripts": { | ||
"prepare": "tsc && mkdir -p std && cp -r ../std/* ./std/ && npm run bundle", | ||
"bundle": "./browser/genstdlibs.js > ./browser/stdlibs.json && browserify -r alan-js-runtime -r ./browser/runtime.js:alan-runtime -r ./dist/index.js:alan-compiler > bundle.js", | ||
"bundle": "node ./browser/genstdlibs.js > ./browser/stdlibs.json && browserify -r alan-js-runtime -r ./browser/runtime.js:alan-runtime -r ./dist/index.js:alan-compiler > bundle.js", | ||
"clean": "rm -f bundle.js && rm -rf dist", | ||
@@ -12,0 +12,0 @@ "test-server": "nohup http-server >/dev/null 2>/dev/null </dev/null &", |
@@ -133,3 +133,3 @@ import * as fs from 'fs' | ||
} | ||
if (pathRoot === "/") { | ||
if (pathRoot === "/" || /[A-Z]:\\/.test(pathRoot)) { | ||
pathRoot = null | ||
@@ -164,3 +164,3 @@ } else { | ||
} | ||
if (pathRoot === "/") { | ||
if (pathRoot === "/" || /[A-Z]:\\/.test(pathRoot)) { | ||
pathRoot = null | ||
@@ -167,0 +167,0 @@ } else { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
3483149