diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index d9a00f6..995efbd 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -29,6 +29,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci --force + - run: npm run build --if-present -- --isNpmBuild - run: npm run build --if-present - run: python -m pip install linkcheckmd - run: python -m linkcheckmd README.md diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 93d7136..4f0c878 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -29,7 +29,7 @@ jobs: node-version: 20 registry-url: https://registry.npmjs.org/ - run: npm ci --force - - run: npm run build --if-present --isNpmBuild + - run: npm run build --if-present -- --isNpmBuild - run: npm publish --access=public env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/README.md b/README.md index 3809c62..71733cb 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,29 @@ ---- -page_type: sample -description: A rich library of animations for use with the Azure Maps Web SDK. -languages: -- javascript -- typescript -products: -- azure -- azure-maps ---- + + + + + + + + + + + + + + + + + +
page_typedescriptionlanguagesproducts
sampleA rich library of animations for use with the Azure Maps Web SDK. + javascript +
+ typescript +
+ azure +
+ azure-maps +
# Azure Maps Animation module diff --git a/build/build.js b/build/build.js index 04867a5..01df27d 100644 --- a/build/build.js +++ b/build/build.js @@ -94,6 +94,7 @@ let rollupError = false; let rollupInputOps, rollupOutputOps; if (!args.isNpmBuild) { // Set rollup options for browser builds. + console.log("Building IIFE version"); rollupInputOps = { external: ["azure-maps-control"], onwarn: rollupWarn, @@ -120,12 +121,15 @@ let rollupError = false; } }; } else { + console.log("Building CommonJS version"); rollupInputOps = { external: ["azure-maps-control"], onwarn: rollupWarn, input: inputPath, plugins: [ - nodeResolve(), + nodeResolve({ + browser: true, + }), commonjs({ namedExports: namedExports }) diff --git a/package-lock.json b/package-lock.json index 61b191c..849d988 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@azure-maps/animations", - "version": "0.0.2", + "version": "0.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@azure-maps/animations", - "version": "0.0.2", + "version": "0.0.3", "license": "MIT", "dependencies": { "azure-maps-control": "^2.0.25 || ^3.0.1" diff --git a/package.json b/package.json index 975a5b5..1f2b410 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@azure-maps/animations", - "version": "0.0.2", + "version": "0.0.3", "description": "A module for the Azure Maps Web SDK that provides tools for animating data on the map.", "keywords": [ "azure",