From 27c6366cebbfdcaa64503e6f7ba9e0703ce8a0d0 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Fri, 19 Apr 2024 15:09:45 -0700 Subject: [PATCH] styles 2.0.0 [#231, #236] (#237) * deprecate CommonJS build output * rename IIFE to protomaps-themes-base.js * rename ES6 module to index.js (exports value in package.json) --- styles/package.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/styles/package.json b/styles/package.json index 0a8e82fd..d113e943 100644 --- a/styles/package.json +++ b/styles/package.json @@ -1,6 +1,6 @@ { "name": "protomaps-themes-base", - "version": "2.0.0-alpha.6", + "version": "2.0.0", "description": "Protomaps basemap themes for MapLibre GL JS", "type": "module", "exports": "./dist/index.js", @@ -11,9 +11,8 @@ "src" ], "scripts": { - "build-iife": "esbuild src/index.ts --outfile=dist/index.js --target=es6 --global-name=protomaps_themes_base --bundle --format=iife", - "build-esm": "esbuild src/index.ts --outfile=dist/index.mjs --target=es6 --bundle --format=esm", - "build-cjs": "esbuild src/index.ts --outfile=dist/index.cjs --target=es6 --bundle --format=cjs", + "build-iife": "esbuild src/index.ts --outfile=dist/protomaps-themes-base.js --target=es6 --global-name=protomaps_themes_base --bundle --format=iife", + "build-esm": "esbuild src/index.ts --outfile=dist/index.js --target=es6 --bundle --format=esm", "build-tsc": "tsc --declaration --emitDeclarationOnly --outdir dist", "generate-layers": "tsx src/generate_layers.ts", "dist-light": "mkdir -p dist/layers && npm run --silent generate-layers protomaps light > dist/layers/light.json", @@ -22,7 +21,7 @@ "dist-grayscale": "mkdir -p dist/layers && npm run --silent generate-layers protomaps grayscale > dist/layers/grayscale.json", "dist-black": "mkdir -p dist/layers && npm run --silent generate-layers protomaps black > dist/layers/black.json", "dist-all": "npm run dist-light && npm run dist-dark && npm run dist-white && npm run dist-grayscale && npm run dist-black", - "build": "npm run build-iife && npm run build-esm && npm run build-cjs && npm run build-tsc && npm run dist-all", + "build": "npm run build-iife && npm run build-esm && npm run build-tsc && npm run dist-all", "test": "tsx test/index.test.ts", "tsc": "tsc --noEmit --watch", "check": "biome check src test --javascript-formatter-indent-style=space --json-formatter-indent-style=space"