From 43fa32086b1b6c0f6a5d11ca915d7a9c7388e965 Mon Sep 17 00:00:00 2001 From: dcode Date: Mon, 20 Jul 2020 01:04:47 +0200 Subject: [PATCH 1/2] Preliminary path.relative workaround --- cli/asc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/asc.js b/cli/asc.js index 780dd0dcd3..14fcf11d61 100644 --- a/cli/asc.js +++ b/cli/asc.js @@ -351,8 +351,11 @@ exports.main = function main(argv, options, callback) { // returns a relative path from baseDir function makeRelative(arg) { + // FIXME: see https://github.com/AssemblyScript/assemblyscript/issues/1398 + if (baseDir === ".") return arg; return path.relative(baseDir, arg); } + // postprocess we need to get absolute file locations argv argv = unique(argv.map(resolveBasedir)).map(makeRelative); From b77dd9cd154824cce90c0c93275d3dba0355cd1b Mon Sep 17 00:00:00 2001 From: dcode Date: Mon, 20 Jul 2020 01:27:39 +0200 Subject: [PATCH 2/2] run browser test --- .github/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 42d8715922..60f636a26a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -68,6 +68,8 @@ jobs: exit 1 fi npm test + - name: Test browser build + run: node tests/browser-asc test-windows: name: "Compiler (Windows, node current)" runs-on: windows-latest @@ -87,6 +89,8 @@ jobs: run: npm run build - name: Test distribution run: npm test + - name: Test browser build + run: node tests/browser-asc test-macos: name: "Compiler (MacOS, node current)" runs-on: macos-latest @@ -106,6 +110,8 @@ jobs: run: npm run build - name: Test distribution run: npm test + - name: Test browser build + run: node tests/browser-asc test-features: name: "Features" runs-on: ubuntu-latest