Skip to content

Commit

Permalink
try to force esm moduel type for esm build, fixes #269
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Nov 3, 2022
1 parent 2c5ba3c commit 07c2c50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 7.0.1

- try to force esm moduel type for esm build [269](https://github.com/i18next/i18next-browser-languageDetector/issues/269)

### 7.0.0

- typescript fix for i18next v22
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@
"test": "npm run build && mocha test -R spec --exit",
"test:typescript": "tslint --project tsconfig.json && tsd",
"test:typescript:noninterop": "tslint --project tsconfig.nonEsModuleInterop.json",
"build": "rimraf dist && rollup -c && cpy \"./dist/umd/*.js\" ./",
"preversion": "npm run build && git push",
"postversion": "git push && git push --tags"
"build": "rimraf dist && rollup -c && echo '{\"type\":\"module\"}' > dist/esm/package.json && cpy \"./dist/umd/*.js\" ./",
"fix_dist_package": "node -e 'console.log(`{\"type\":\"module\",\"version\":\"${process.env.npm_package_version}\"}`)' > dist/esm/package.json",
"preversion": "npm run test && npm run build && git push",
"postversion": "npm run fix_dist_package && git push && git push --tags"
},
"tsd": {
"directory": "test/typescript"
Expand Down

0 comments on commit 07c2c50

Please sign in to comment.