broccoli-file-creator
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -41,5 +41,5 @@ var fs = require('fs'); | ||
function linkFromCache(from, to) { | ||
mkdirp.sync(path.dirname(to.outputFile)); | ||
mkdirp.sync(path.dirname(to)); | ||
symlinkOrCopySync(from, to); | ||
} |
{ | ||
"name": "broccoli-file-creator", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Broccoli plugin to create a file.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,2 +52,13 @@ 'use strict'; | ||
it('creates the file specified in a non-existent directory', function(){ | ||
var content = 'ZOMG, ZOMG, HOLY MOLY!!!'; | ||
var tree = writeFile('/somewhere/something.js', content); | ||
builder = new broccoli.Builder(tree); | ||
return builder.build().then(function(result) { | ||
expect(fs.readFileSync(result.directory + '/somewhere/something.js', {encoding: 'utf8'})).to.eql(content); | ||
}); | ||
}); | ||
it('correctly caches', function(){ | ||
@@ -54,0 +65,0 @@ var content = 'ZOMG, ZOMG, HOLY MOLY!!!'; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6428
98
0