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

broccoli-file-creator

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-file-creator - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

12

index.js

@@ -0,5 +1,6 @@

'use strict';
var fs = require('fs');
var path = require('path');
var Plugin = require('broccoli-plugin');
var symlinkOrCopySync = require('symlink-or-copy').sync;
var mkdirp = require('mkdirp');

@@ -30,14 +31,15 @@

this.fileOptions = options;
this._built = false;
}
Creator.prototype.build = function () {
var outputFilePath = path.join(this.outputPath, this.filename);
if (fs.existsSync(outputFilePath)) {
if (this._built) {
return;
}
var outputFilePath = path.join(this.outputPath, this.filename);
mkdirp.sync(path.dirname(outputFilePath));
fs.writeFileSync(outputFilePath, this.content, this.fileOptions);
this._built = true;
};
{
"name": "broccoli-file-creator",
"version": "1.1.1",
"version": "1.2.0",
"description": "Broccoli plugin to create a file.",

@@ -24,8 +24,4 @@ "main": "index.js",

"dependencies": {
"broccoli-kitchen-sink-helpers": "~0.2.0",
"broccoli-plugin": "^1.1.0",
"broccoli-writer": "~0.1.1",
"mkdirp": "^0.5.1",
"rsvp": "~3.0.6",
"symlink-or-copy": "^1.0.1"
"mkdirp": "^0.5.1"
},

@@ -32,0 +28,0 @@ "devDependencies": {

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