@after-work.js/transform
Advanced tools
Comparing version 5.0.0-beta.0 to 5.0.0-beta.1
{ | ||
"name": "@after-work.js/transform", | ||
"version": "5.0.0-beta.0", | ||
"version": "5.0.0-beta.1", | ||
"publishConfig": { | ||
@@ -23,3 +23,3 @@ "access": "public" | ||
"dependencies": { | ||
"@after-work.js/utils": "^5.0.0-beta.0", | ||
"@after-work.js/utils": "^5.0.0-beta.1", | ||
"find-cache-dir": "1.0.0", | ||
@@ -26,0 +26,0 @@ "import-cwd": "2.1.0" |
@@ -23,3 +23,3 @@ /* eslint global-require: 0, import/no-dynamic-require: 0, object-curly-newline: 0, class-methods-use-this: 0, max-len: 0 */ | ||
function transformTypescript(filePath, sourceRoot, tsContent, argv) { | ||
const { tsc } = argv; | ||
const { babel: { typescript } } = argv; | ||
const { transform: { typescript: { compilerOptions, babelOptions } } } = argv; | ||
@@ -36,3 +36,3 @@ const fileName = argv.coverage ? path.basename(filePath) : filePath; | ||
const transpileOpts = { fileName, compilerOptions }; | ||
const res = tsc.transpileModule(tsContent, transpileOpts); | ||
const res = typescript.transpileModule(tsContent, transpileOpts); | ||
tsContent = res.outputText; // eslint-disable-line no-param-reassign | ||
@@ -39,0 +39,0 @@ let tsBabelOpts = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6917