diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5327ad4f48..e318652dc2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,6 +53,10 @@ jobs: npm run build-benchmarks npm run generate-typings + - name: Empty postinstall.js + run: | + echo "// empty in published package" > postinstall.js + - name: Create Archive run: | zip -r dist dist diff --git a/CHANGELOG.md b/CHANGELOG.md index cc018edd8c..431cfe74fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,13 @@ - *...Add new stuff here...* -## 2.1.4 +## 2.1.5-pre.1 + +### 🐞 Bug fixes +- Publish empty `postinstall.js` file. Follow-up on (#990), (#991), (#992). + +## 2.1.4 ### 🐞 Bug fixes diff --git a/package.json b/package.json index 4e1a6303ec..593411161f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "maplibre-gl", "description": "BSD licensed community fork of mapbox-gl, a WebGL interactive maps library", - "version": "2.1.4", + "version": "2.1.5-pre.1", "main": "dist/maplibre-gl.js", "style": "dist/maplibre-gl.css", "license": "BSD-3-Clause", diff --git a/postinstall.js b/postinstall.js index 2ced03a421..8136e31d52 100644 --- a/postinstall.js +++ b/postinstall.js @@ -1,5 +1,3 @@ import {execSync} from 'child_process'; -if (process.env.NODE_ENV !== 'production') { - execSync('npm run codegen && npm run generate-query-test-fixtures && husky install'); -} +execSync('npm run codegen && npm run generate-query-test-fixtures && husky install');