Skip to content

Commit

Permalink
ESM only
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This package is now pure ESM. See [this guide](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) for an explanation of how to use a pure ESM package.
  • Loading branch information
mskelton committed Jan 25, 2023
1 parent 9e560b1 commit 361393a
Show file tree
Hide file tree
Showing 4 changed files with 1,665 additions and 963 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ISC License

Copyright (c) 2022, Mark Skelton
Copyright (c) 2023, Mark Skelton

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
28 changes: 17 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@
"relativetimeformat",
"timeago"
],
"exports": "./lib/index.js",
"types": "./lib/index.d.ts",
"engines": {
"node": ">=16.0.0"
},
"type": "module",
"exports": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js"
},
"files": [
"src",
"lib"
Expand All @@ -30,16 +36,16 @@
"ts": "tsc"
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@babel/eslint-parser": "^7.17.0",
"@babel/core": "^7.20.12",
"@babel/eslint-parser": "^7.19.1",
"@mskelton/eslint-config": "^7.1.0",
"@mskelton/tsconfig": "^1.1.1",
"@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.13.0",
"eslint": "^8.10.0",
"@mskelton/tsconfig": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"eslint": "^8.32.0",
"eslint-plugin-sort": "^2.4.0",
"prettier": "^2.5.1",
"semantic-release": "^18.0.1",
"typescript": "^4.6.2"
"prettier": "^2.8.3",
"semantic-release": "^20.0.4",
"typescript": "^4.9.4"
}
}
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "@mskelton/tsconfig",
"compilerOptions": {
"module": "CommonJS",
"outDir": "lib"
},
"include": ["src"]
Expand Down
Loading

0 comments on commit 361393a

Please sign in to comment.