i18next-scanner-typescript
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "i18next-scanner-typescript", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "i18next-scanner Typescript transform", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -10,8 +10,5 @@ const fs = require("fs"); | ||
}, | ||
extensions = [".ts", ".tsx"] | ||
} | ||
) { | ||
if (!options.extensions) { | ||
options.extensions = [".ts", ".tsx"]; | ||
} | ||
return function transform(file, enc, done) { | ||
@@ -24,3 +21,3 @@ const { base, ext } = path.parse(file.path); | ||
const { outputText } = typescript.transpileModule(content, { | ||
compilerOptions: tsOptions, | ||
compilerOptions: options.tsOptions, | ||
fileName: path.basename(file.path), | ||
@@ -27,0 +24,0 @@ }); |
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
2699
25