oclif 4.15.8 → 4.15.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/manifest.js +8 -0
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/lib/commands/manifest.js
CHANGED
|
@@ -104,6 +104,14 @@ class Manifest extends core_1.Command {
|
|
|
104
104
|
plugin = new PluginLegacy(this.config, plugin);
|
|
105
105
|
await plugin.load();
|
|
106
106
|
}
|
|
107
|
+
if (!Array.isArray(plugin.pjson.files)) {
|
|
108
|
+
this.error('The package.json has to contain a "files" array', {
|
|
109
|
+
ref: 'https://docs.npmjs.com/cli/v10/configuring-npm/package-json#files',
|
|
110
|
+
suggestions: [
|
|
111
|
+
'Add a "files" property in the package.json listing the paths to the files that should be included in the published package',
|
|
112
|
+
],
|
|
113
|
+
});
|
|
114
|
+
}
|
|
107
115
|
const dotfile = plugin.pjson.files.find((f) => f.endsWith('.oclif.manifest.json'));
|
|
108
116
|
const file = path.join(plugin.root, `${dotfile ? '.' : ''}oclif.manifest.json`);
|
|
109
117
|
for (const manifest of jitPluginManifests) {
|
package/oclif.manifest.json
CHANGED