diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 86d549f07d..923e2c219d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -376,9 +376,6 @@ jobs: shell: bash -l {0} working-directory: ${{ matrix.example_directories }} run: npm link azle - - if: ${{ needs.release-candidate-deploy.outputs.should_run_tests }} - working-directory: ${{ matrix.example_directories }} - run: npx azle install-dfx-extension - if: ${{ needs.release-candidate-deploy.outputs.should_run_tests }} working-directory: ${{ matrix.example_directories }} run: dfx start --clean --background --host 127.0.0.1:8000 diff --git a/dfx_extension/dependencies.json b/dfx_extension/dependencies.json deleted file mode 100644 index 5997c67ae8..0000000000 --- a/dfx_extension/dependencies.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "0.23.0": { - "dfx": { - "version": ">=0.0.0" - } - } -} diff --git a/package-lock.json b/package-lock.json index fbd276256a..d8dbc80ff9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "azle", "version": "0.23.0", + "hasInstallScript": true, "license": "MIT", "dependencies": { "@dfinity/agent": "^1.1.0", diff --git a/package.json b/package.json index a7da1d6e89..f6d5d34831 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "typecheck": "tsc --noEmit", "lint": "if [ \"$npm_config_fix\" ]; then eslint . --ext .js,.ts --cache --fix; else eslint . --ext .js,.ts --cache; fi", "prepare": "./install_wasmedge_quickjs.sh && husky install", + "install": "cd dfx_extension && ./install.sh", "test": "test/test.sh" }, "type": "module", diff --git a/src/lib/stable/globals.ts b/src/lib/stable/globals.ts index f087cf22a2..b997697fee 100644 --- a/src/lib/stable/globals.ts +++ b/src/lib/stable/globals.ts @@ -117,7 +117,9 @@ if (globalThis._azleInsideCanister === true) { info: log }; - (globalThis as any).Buffer = createExperimentalWarningProxy('Buffer'); + if (globalThis._azleExperimental === false) { + (globalThis as any).Buffer = createExperimentalWarningProxy('Buffer'); + } } function createExperimentalWarningProxy(name: string): object {