Comparing version 2.1.0 to 2.1.1
11
index.js
@@ -14,2 +14,4 @@ 'use strict'; | ||
var writeFile = Q.denodeify(fs.writeFile); | ||
var babelPolyfillPath = require.resolve('babel-polyfill/dist/polyfill.js'); | ||
var normalizeCssPath = require.resolve('normalize.css/normalize.css'); | ||
@@ -74,4 +76,2 @@ var templatesDir = 'templates'; | ||
}, | ||
babelPolyfill: 'babel-polyfill/dist/polyfill.js', | ||
normalizeCss: 'normalize.css/normalize.css', | ||
}; | ||
@@ -123,4 +123,3 @@ | ||
function copyModuleFileAs(modulePath, outputPath) { | ||
var filename = require.resolve(modulePath); | ||
function getFile(filename, outputPath) { | ||
var inputFile = readFile(filename, 'utf8'); | ||
@@ -163,6 +162,6 @@ return formatOutputObject(inputFile, outputPath); | ||
if (options.babelPolyfill) { | ||
files.push(copyModuleFileAs(fileMap.babelPolyfill, join(options.scripts.folder, 'polyfill.js'))); | ||
files.push(getFile(babelPolyfillPath, join(options.scripts.folder, 'polyfill.js'))); | ||
} | ||
if (options.normalizeCss) { | ||
files.push(copyModuleFileAs(fileMap.normalizeCss, join(options.styles.folder, 'normalize.css'))); | ||
files.push(getFile(normalizeCssPath, join(options.styles.folder, 'normalize.css'))); | ||
} | ||
@@ -169,0 +168,0 @@ |
{ | ||
"name": "barnyard", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Bootstrap/Scaffold a project for use with Piggy in the Middle and Baconize", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
1
18636
182