Skip to content

Commit

Permalink
Fix declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
corrideat committed Sep 25, 2023
1 parent f1c985f commit fac73fd
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 30 deletions.
100 changes: 74 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"scripts": {
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.json",
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx,.json --fix",
"ts:declaration": "tsc --build --emitDeclarationOnly --declarationMap --declaration",
"ts:declaration": "tspc --build --emitDeclarationOnly --declarationMap --declaration",
"build": "npm run ts:declaration && node esbuild.mjs",
"test:unit": "nyc mocha src/**/*.spec.ts",
"test:e2e": "mocha test/**/*.spec.ts",
Expand All @@ -150,7 +150,6 @@
"@types/selenium-webdriver": "^4.1.17",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"@zerollup/ts-transform-paths": "^1.7.18",
"deno-types": "^1.25.0",
"esbuild": "^0.19.3",
"eslint": "^8.50.0",
Expand All @@ -162,7 +161,9 @@
"prettier": "^3.0.3",
"selenium-webdriver": "^4.10.0 <4.11.0 || >4.11.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
"ts-patch": "^3.0.2",
"typescript": "^5.2.2",
"typescript-transform-paths": "^3.4.6"
},
"engines": {
"npm": ">=8.0.0",
Expand Down
7 changes: 6 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
"~trusted/*": ["./src/trusted/*"],
"~untrusted/*": ["./src/untrusted/*"]
},
"plugins": [{ "transform": "@zerollup/ts-transform-paths" }],
"plugins": [
{
"transform": "typescript-transform-paths",
"afterDeclarations": true
}
],
"declaration": true,
"allowJs": true,
"checkJs": false
Expand Down

0 comments on commit fac73fd

Please sign in to comment.