Skip to content

Commit

Permalink
Fix optional peer dep
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Nov 23, 2020
1 parent 19990d4 commit 1551509
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
9 changes: 6 additions & 3 deletions package-lock.json

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

8 changes: 5 additions & 3 deletions package.json
Expand Up @@ -81,6 +81,7 @@
},
"homepage": "https://github.com/TypeStrong/ts-node",
"devDependencies": {
"@swc/core": ">=1.2.38",
"@types/chai": "^4.0.4",
"@types/diff": "^4.0.2",
"@types/lodash": "^4.14.151",
Expand Down Expand Up @@ -111,11 +112,12 @@
"@swc/core": ">=1.2.38",
"typescript": ">=2.7"
},
"optionalDependencies": {
"@swc/core": ">=1.2.38"
"peerDependenciesMeta": {
"@swc/core": {
"optional": true
}
},
"dependencies": {
"@swc/core": ">=1.2.38",
"arg": "^4.1.0",
"diff": "^4.0.1",
"make-error": "^1.1.1",
Expand Down
2 changes: 1 addition & 1 deletion src/compilers/swc.ts
Expand Up @@ -32,7 +32,7 @@ export const transpileModule: typeof ts.transpileModule = (input: string, transp
development: false,
useBuiltins: false,
pragma: jsxFactory!,
pragmaFrag: jsxFragmentFactory!,
pragmaFrag: jsxFragmentFactory!
}
}
}
Expand Down

0 comments on commit 1551509

Please sign in to comment.