@cobalt-engine/manifest
Advanced tools
Comparing version 3.0.1 to 3.0.2
14
index.js
@@ -5,2 +5,3 @@ var settings = require('@cobalt-engine/settings'), | ||
fs = require('fs-extra'), | ||
path = require('path'), | ||
Q = require('q'), | ||
@@ -21,2 +22,6 @@ outputFile = Q.denodeify(fs.outputFile); | ||
Manifest.prototype.outputManifestFile = function(clm, manifestFilePath){ | ||
if(!this.isClmManifestInSettings(clm)){ | ||
return Q.reject(new Error('No manifest field for `' + clm + '` in app.json')); | ||
} | ||
return outputFile(manifestFilePath, this.outputManifestText(clm)); | ||
@@ -44,2 +49,9 @@ }; | ||
module.exports = Manifest; | ||
function outputClmManifest(options) { | ||
var manifest = Manifest(options); | ||
return manifest.outputManifestFile(options.clm, path.resolve(options.cwd || process.cwd(), 'build', options.clm, 'manifest.csv')); | ||
} | ||
module.exports = Manifest; | ||
module.exports.outputClmManifest = outputClmManifest; |
{ | ||
"name": "@cobalt-engine/manifest", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
2649
66
5
1