typed-css-modules
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -29,2 +29,3 @@ export declare type CamelCaseOption = boolean | 'dashes' | undefined; | ||
get outputFilePath(): string; | ||
get relativeOutputFilePath(): string; | ||
get inputFilePath(): string; | ||
@@ -43,3 +44,4 @@ get relativeInputFilePath(): string; | ||
private dashesCamelCase; | ||
private get outputFileName(); | ||
} | ||
export {}; |
@@ -71,5 +71,7 @@ "use strict"; | ||
get outputFilePath() { | ||
const outputFileName = this.dropExtension ? removeExtension(this.rInputPath) : this.rInputPath; | ||
return path.join(this.rootDir, this.outDir, outputFileName + '.d.ts'); | ||
return path.join(this.rootDir, this.outDir, this.outputFileName); | ||
} | ||
get relativeOutputFilePath() { | ||
return path.join(this.outDir, this.outputFileName); | ||
} | ||
get inputFilePath() { | ||
@@ -89,3 +91,3 @@ return path.join(this.rootDir, this.searchDir, this.rInputPath); | ||
if (fileContent !== finalOutput) { | ||
console.error(chalk_1.default.red(`[ERROR] Check type definitions for '${this.outputFilePath}'`)); | ||
console.error(chalk_1.default.red(`[ERROR] Check type definitions for '${this.relativeOutputFilePath}'`)); | ||
return false; | ||
@@ -143,2 +145,6 @@ } | ||
} | ||
get outputFileName() { | ||
const outputFileName = this.dropExtension ? removeExtension(this.rInputPath) : this.rInputPath; | ||
return outputFileName + '.d.ts'; | ||
} | ||
} | ||
@@ -145,0 +151,0 @@ exports.DtsContent = DtsContent; |
{ | ||
"name": "typed-css-modules", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Creates .d.ts files from CSS Modules .css files", | ||
@@ -52,3 +52,3 @@ "main": "lib/index.js", | ||
"@types/mkdirp": "1.0.2", | ||
"@types/node": "14.17.18", | ||
"@types/node": "16.11.28", | ||
"@types/yargs": "15.0.4", | ||
@@ -55,0 +55,0 @@ "husky": "7.0.2", |
Sorry, the diff of this file is not supported yet
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
46860
608