Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

compile-vue-sfc

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compile-vue-sfc - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc