Skip to content

Commit 2f1f8f4

Browse files
committed
Fix conditional exports, list supported node engines, closes #17
1 parent a26a6e5 commit 2f1f8f4

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
node-version: 12
2929
registry-url: https://registry.npmjs.org/
3030
- run: yarn
31-
- run: yarn compile
3231
- run: npm publish
3332
env:
3433
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.2.0] - 2020-05-24
9+
10+
### Added
11+
12+
- Explicitly list supported node versions
13+
14+
### Fixed
15+
16+
- Node conditional exports paths
17+
818
## [1.1.0] - 2020-05-24
919

1020
### Fixed
@@ -62,6 +72,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6272

6373
- Fix linter crash on accessing node key name
6474

75+
[1.2.0]: https://github.com/infctr/eslint-plugin-typescript-sort-keys/compare/v1.1.0...v1.2.0
6576
[1.1.0]: https://github.com/infctr/eslint-plugin-typescript-sort-keys/compare/v1.0.2...v1.1.0
6677
[1.0.2]: https://github.com/infctr/eslint-plugin-typescript-sort-keys/compare/v1.0.1...v1.0.2
6778
[1.0.1]: https://github.com/infctr/eslint-plugin-typescript-sort-keys/compare/v1.0.0...v1.0.1

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"typescript"
1010
],
1111
"author": "infctr <infctr@gmail.com>",
12-
"main": "lib/index.cjs.js",
13-
"module": "lib/index.esm.js",
12+
"main": "./lib/index.cjs.js",
1413
"repository": "git@github.com:infctr/eslint-plugin-typescript-sort-keys.git",
1514
"url": "https://github.com/infctr/eslint-plugin-typescript-sort-keys",
1615
"files": [
@@ -21,9 +20,9 @@
2120
"README.md"
2221
],
2322
"exports": {
24-
"import": "lib/index.esm.js",
25-
"require": "lib/index.cjs.js",
26-
"default": "lib/index.cjs.js"
23+
"import": "./lib/index.esm.js",
24+
"require": "./lib/index.cjs.js",
25+
"default": "./lib/index.cjs.js"
2726
},
2827
"scripts": {
2928
"prepublishOnly": "yarn compile",
@@ -91,7 +90,7 @@
9190
"typescript": "^3"
9291
},
9392
"engines": {
94-
"node": ">=8.3.0"
93+
"node": "10 - 12 || >= 13.9"
9594
},
9695
"license": "ISC"
9796
}

0 commit comments

Comments
 (0)