Skip to content

Commit aa0d603

Browse files
authored
Migrate to ECMAScript module (#142)
1 parent 64aa196 commit aa0d603

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

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

3+
## Unreleased
4+
5+
- Changed: migrate to ECMAScript module.
6+
37
## 0.7.0
48

59
- Changed: bump `ora` to v9.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@
1919
],
2020
"license": "MIT",
2121
"author": "stylelint",
22-
"main": "create-stylelint.mjs",
22+
"type": "module",
23+
"exports": "./create-stylelint.mjs",
2324
"bin": {
2425
"create-stylelint": "./create-stylelint.mjs"
2526
},
2627
"files": [
28+
"create-stylelint.mjs",
2729
"src"
2830
],
2931
"scripts": {

tsconfig.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2019",
4-
"module": "commonjs",
5-
"lib": ["ES2019"],
3+
"module": "NodeNext",
4+
"lib": ["ESNext"],
65
"allowJs": true,
76
"checkJs": true,
87
"noEmit": true,

0 commit comments

Comments
 (0)