Skip to content

Commit

Permalink
styles 2.0.0 [#231, #236] (#237)
Browse files Browse the repository at this point in the history
* deprecate CommonJS build output
* rename IIFE to protomaps-themes-base.js
* rename ES6 module to index.js (exports value in package.json)
  • Loading branch information
bdon authored Apr 19, 2024
1 parent 2e9a76b commit 27c6366
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions styles/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand All @@ -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"
Expand Down

0 comments on commit 27c6366

Please sign in to comment.