Skip to content

Commit

Permalink
feat!: convert to ES module
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaSemenov committed Apr 30, 2023
1 parent afb83fe commit 00c5c9a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

## Install

```
yarn add grammy-scenes
```sh
npm i grammy-scenes
```

## Use
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
"*.{js,ts}": "eslint --fix",
export default {
"*.{cjs,js,ts}": "eslint --fix",
}
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
},
"author": "Ilya Semenov",
"license": "MIT",
"main": "dist/index.js",
"module": "dist/index.mjs",
"type": "module",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"types": "dist/index.d.ts",
"source": "src/index.ts",
"files": [
Expand All @@ -19,7 +22,7 @@
"scripts": {
"build": "tsup",
"prepack": "npm run build",
"lint": "eslint --fix '**/*.{js,ts}'",
"lint": "eslint --fix '**/*.{cjs,js,ts}'",
"prepare": "husky install",
"test": "npm run test:types",
"test:types": "tsc --noEmit",
Expand Down
File renamed without changes.

0 comments on commit 00c5c9a

Please sign in to comment.