Skip to content

Commit dca3dfe

Browse files
author
Zane Huston
committed
v4.0.1
1 parent 5ca0394 commit dca3dfe

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
---
1919
<br>
2020

21+
## [v4.0.1]
22+
### Fixed
23+
- error running postinstall
24+
2125
## [v4.0.0]
2226
### Added
2327
- NOTICE file citing iso639-3.sil.org as the source of the codes, per their [terms of use](https://iso639-3.sil.org/code_tables/download_tables#termsofuse)

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "langs-es",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"description": "ISO 639-1/2/3 Language codes with English and local names",
55
"keywords": [
66
"639",
@@ -28,7 +28,8 @@
2828
"main": "./dist/index.cjs",
2929
"files": [
3030
"dist",
31-
"NOTICE"
31+
"NOTICE",
32+
"util/postinstall.js"
3233
],
3334
"scripts": {
3435
"postinstall": "node util/postinstall.js",

util/postinstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const color = {
77
Reset: '\x1b[0m',
88
};
99

10-
if (process.env.NODE_ENV === 'development') {
10+
if (existsSync(new URL('../test', import.meta.url))) {
1111
const cjsLinked = existsSync(new URL('../test/cjs/node_modules', import.meta.url));
1212
const esmLinked = existsSync(new URL('../test/esm/node_modules', import.meta.url));
1313
if (cjsLinked && esmLinked) {

0 commit comments

Comments
 (0)