compile-vue-sfc
Advanced tools
Comparing version 0.1.5 to 0.1.6
{ | ||
"name": "compile-vue-sfc", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "A utility function to compile a Vue SFC file into JavaScript and TypeScript definitions.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -94,3 +94,3 @@ import vue from '@vitejs/plugin-vue'; | ||
if (options.outDir !== undefined) { | ||
const compiledVueSFCPath = path.join(options.outDir, relativePathDir, `${vueSFCName}.js`); | ||
const compiledVueSFCPath = path.join(options.outDir, relativePathDir, `${vueSFCName}.vue.js`); | ||
if (!fs.existsSync(path.dirname(compiledVueSFCPath))) { | ||
@@ -102,3 +102,3 @@ fs.mkdirSync(path.dirname(compiledVueSFCPath), { recursive: true }); | ||
else if (options.write) { | ||
const compiledVueSFCPath = path.join(projectPath, relativePathDir, `${vueSFCName}.js`); | ||
const compiledVueSFCPath = path.join(projectPath, relativePathDir, `${vueSFCName}.vue.js`); | ||
await fs.promises.writeFile(compiledVueSFCPath, code); | ||
@@ -105,0 +105,0 @@ } |
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
281792