Skip to content

Commit

Permalink
fix: make update-addon importable with "moduleResolution": "node"
Browse files Browse the repository at this point in the history
  • Loading branch information
iorate committed Jan 8, 2023
1 parent cf64198 commit f7a301f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ This plugin makes it possible to submit source code by using
### updateAddon

```typescript
// Make sure that the `moduleResolution` field in tsconfig.json is set to 'Node16' or 'NodeNext'.
import { updateAddon } from 'semantic-release-amo/update-addon';

await updateAddon({
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
],
"ignorePatterns": [
"/.yarn",
"/dist"
"/dist",
"/update-addon.d.ts"
],
"parserOptions": {
"project": "./tsconfig.json"
Expand All @@ -52,7 +53,8 @@
},
"files": [
"./dist/*.js",
"./dist/update-addon.d.ts"
"./dist/update-addon.d.ts",
"./update-addon.d.ts"
],
"homepage": "https://github.com/iorate/semantic-release-amo#readme",
"keywords": [
Expand Down Expand Up @@ -85,9 +87,10 @@
"scripts": {
"build": "tsc",
"watch": "tsc --watch",
"lint": "run-p lint-eslint lint-prettier",
"lint": "run-p lint-eslint lint-prettier lint-tsc",
"lint-eslint": "eslint .",
"lint-prettier": "prettier --check --loglevel warn .",
"lint-tsc": "tsc --noEmit",
"fix": "run-s fix-eslint fix-prettier",
"fix-eslint": "eslint --fix .",
"fix-prettier": "prettier --write --loglevel warn ."
Expand Down
1 change: 1 addition & 0 deletions update-addon.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/update-addon';

0 comments on commit f7a301f

Please sign in to comment.