Skip to content

Commit b65fbdd

Browse files
authored
Bump to v2.1.3 - Fix postinstall error ts-node not found in non-dev installs (#991)
1 parent 0b6f7ad commit b65fbdd

4 files changed

Lines changed: 21 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
### 🐞 Bug fixes
88

99
- *...Add new stuff here...*
10+
11+
## 2.1.3
12+
13+
### 🐞 Bug fixes
14+
15+
- Fix postinstall `ts-node` error on non-dev installs (#900)
16+
1017
## 2.1.2
1118

1219
### Features and improvements

package-lock.json

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

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "maplibre-gl",
33
"description": "BSD licensed community fork of mapbox-gl, a WebGL interactive maps library",
4-
"version": "2.1.2",
4+
"version": "2.1.3",
55
"main": "dist/maplibre-gl.js",
66
"style": "dist/maplibre-gl.css",
77
"license": "BSD-3-Clause",
@@ -24,7 +24,6 @@
2424
"earcut": "^2.2.3",
2525
"geojson-vt": "^3.2.1",
2626
"gl-matrix": "^3.4.3",
27-
"husky": "^7.0.4",
2827
"murmurhash-js": "^1.0.0",
2928
"pbf": "^3.2.1",
3029
"potpack": "^1.0.2",
@@ -95,6 +94,7 @@
9594
"eslint-plugin-react": "^7.28.0",
9695
"gl": "^5.0.0",
9796
"glob": "^7.2.0",
97+
"husky": "^7.0.4",
9898
"is-builtin-module": "^3.1.0",
9999
"jest": "^27.5.1",
100100
"jest-canvas-mock": "^2.3.1",
@@ -171,8 +171,7 @@
171171
"codegen": "npm run generate-style-code && npm run generate-struct-arrays && npm run generate-style-spec && npm run generate-shaders",
172172
"benchmark": "node --loader ts-node/esm --experimental-specifier-resolution=node test/bench/run-benchmarks.ts",
173173
"gl-stats": "node --loader ts-node/esm --experimental-specifier-resolution=node test/bench/gl-stats.ts",
174-
"postinstall": "npm run codegen && npm run generate-query-test-fixtures",
175-
"prepare": "husky install"
174+
"postinstall": "node ./postinstall.js"
176175
},
177176
"files": [
178177
"build/",

postinstall.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import {execSync} from 'child_process';
2+
3+
if (process.env.NODE_ENV !== 'production') {
4+
execSync('npm run codegen && npm run generate-query-test-fixtures && husky install');
5+
}

0 commit comments

Comments
 (0)