From 2c50f8afa5af066c07c125e9851be9b2b68675fa Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Tue, 12 Sep 2023 15:00:21 +0200 Subject: [PATCH] fix: emit assert for import assertions Use the new SWC configuration settings added in https://github.com/swc-project/swc/pull/7914 --- compile.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compile.sh b/compile.sh index c253d74e..a94f9e57 100755 --- a/compile.sh +++ b/compile.sh @@ -3,11 +3,11 @@ set -e set -x -npx swc -C jsc.experimental.keepImportAssertions=true -d dist/nrfCloud ./nrfCloud -npx swc -C jsc.experimental.keepImportAssertions=true -d dist/hello ./hello -npx swc -C jsc.experimental.keepImportAssertions=true -d dist/validator ./validator -npx swc -C jsc.experimental.keepImportAssertions=true -d dist/generate ./generate -npx swc -C jsc.experimental.keepImportAssertions=true -d dist/fingerprint ./fingerprint +npx swc -C jsc.experimental.keepImportAttributes=true -C jsc.experimental.emitAssertForImportAttributes=true -d dist/nrfCloud ./nrfCloud +npx swc -C jsc.experimental.keepImportAttributes=true -C jsc.experimental.emitAssertForImportAttributes=true -d dist/hello ./hello +npx swc -C jsc.experimental.keepImportAttributes=true -C jsc.experimental.emitAssertForImportAttributes=true -d dist/validator ./validator +npx swc -C jsc.experimental.keepImportAttributes=true -C jsc.experimental.emitAssertForImportAttributes=true -d dist/generate ./generate +npx swc -C jsc.experimental.keepImportAttributes=true -C jsc.experimental.emitAssertForImportAttributes=true -d dist/fingerprint ./fingerprint cp -r ./schemas ./dist mkdir ./dist/nrfcloud-application-protocols -cp -r ./nrfcloud-application-protocols/schemas ./dist/nrfcloud-application-protocols \ No newline at end of file +cp -r ./nrfcloud-application-protocols/schemas ./dist/nrfcloud-application-protocols