Skip to content

Commit 21ff9b1

Browse files
authored
Include public\resources js files on npm publish by specifying included files in package.json (#1490)
* change prepare to postinstall * Revert "change prepare to postinstall" This reverts commit b23d4ae. * test publish * specifically include files * bump version * Update package.json * Update CHANGELOG.md
1 parent 5d99f33 commit 21ff9b1

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

.github/workflows/ct.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
- name: Install dependencies 🚀
4141
run: npm ci --prefer-offline --no-audit
4242

43+
- name: Test Publish
44+
run: npm publish --dry-run
45+
4346
- name: Pull test data 📦
4447
run: >-
4548
wget -O test_data.zip
@@ -75,6 +78,10 @@ jobs:
7578
run: npm ci --prefer-offline --no-audit
7679
working-directory: ./light
7780

81+
- name: Test Light Publish
82+
run: npm publish --dry-run
83+
working-directory: ./light
84+
7885
- name: Test Light Version to Docker Hub
7986
uses: docker/build-push-action@v6
8087
with:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# tileserver-gl changelog
22

3+
## 5.2.2-pre.0
4+
* Fix - Include public\resources js files on npm publish by specifying included files in package.json (https://github.com/maptiler/tileserver-gl/pull/1490) by @acalcutt
5+
6+
37
## 5.2.1
48
* Fix invalid Delete of 'prepare' Script required for Light Build (https://github.com/maptiler/tileserver-gl/pull/1489) by @okimiko
59

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
{
22
"name": "tileserver-gl",
3-
"version": "5.2.1",
3+
"version": "5.2.2-pre.0",
44
"description": "Map tile server for JSON GL styles - vector and server side generated raster tiles",
55
"main": "src/main.js",
66
"bin": "src/main.js",
77
"type": "module",
8+
"files": [
9+
"docs",
10+
"src",
11+
"public",
12+
"test",
13+
"package.json",
14+
"CHANGELOG.md",
15+
"README.md",
16+
"LICENSE"
17+
],
818
"scripts": {
919
"prepare": "npm run copy:maplibre && npm run copy:maplibre-inspect && npm run copy:mapbox-rtl-text && npm run copy:leaflet && npm run copy:leaflet-hash",
1020
"copy:maplibre": "copyfiles -EVf node_modules/maplibre-gl/dist/maplibre-gl.js node_modules/maplibre-gl/dist/maplibre-gl.js.map node_modules/maplibre-gl/dist/maplibre-gl.css public/resources/",

0 commit comments

Comments
 (0)