From ec0d671b3fc5209973fd45bd66394a5d94e168e0 Mon Sep 17 00:00:00 2001 From: arobsn Date: Mon, 24 Jul 2023 16:23:25 -0300 Subject: [PATCH 1/2] compile to using fullOpt --- .github/workflows/ci.yml | 2 +- sigma-js/jest.config.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5398146f45..4d352a4cb0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -113,7 +113,7 @@ jobs: SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - name: JS Build - run: sbt -jvm-opts ci/ci.jvmopts ++${{ matrix.scala }} scJS/fastOptJS + run: sbt -jvm-opts ci/ci.jvmopts ++${{ matrix.scala }} scJS/fullOptJS - name: Runs JS tests run: npm run test diff --git a/sigma-js/jest.config.js b/sigma-js/jest.config.js index 3c69644eec..79fa444dc3 100644 --- a/sigma-js/jest.config.js +++ b/sigma-js/jest.config.js @@ -3,8 +3,7 @@ const config = { transform: {}, // reduce non-cached test time by about 20x by disabling babel code transformation moduleDirectories: ["/node_modules"], moduleNameMapper: { - "sigmastate-js/main": - "/../sc/js/target/scala-2.13/sc-fastopt/main.js", + "sigmastate-js/main": "/../sc/js/target/scala-2.13/sc-opt/main.js", }, }; From 67c6e1d94b96afb17c59a4cd190e92ad145e5287 Mon Sep 17 00:00:00 2001 From: arobsn Date: Mon, 24 Jul 2023 16:43:54 -0300 Subject: [PATCH 2/2] fix copy-output script --- sigma-js/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigma-js/package.json b/sigma-js/package.json index 1e65230766..1aa4926877 100644 --- a/sigma-js/package.json +++ b/sigma-js/package.json @@ -29,7 +29,7 @@ "scripts": { "test": "jest", "clean": "shx rm -rf ./dist/*", - "copy-output": "shx mkdir -p ./dist/ && cp -r ../sc/js/target/scala-2.13/sc-fastopt/* ./dist/", + "copy-output": "shx mkdir -p ./dist/ && cp -r ../sc/js/target/scala-2.13/sc-opt/* ./dist/", "prepublishOnly": "npm run clean && npm run copy-output", "ci:snapshot": "node ./scripts/setSnapshotVersion" },