oclif 4.8.0 → 4.8.2
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/generate.js +2 -0
- package/lib/commands/init.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/lib/commands/generate.js
CHANGED
|
@@ -195,6 +195,7 @@ class Generate extends generator_1.GeneratorCommand {
|
|
|
195
195
|
dirname: bin,
|
|
196
196
|
},
|
|
197
197
|
repository: `${owner}/${repository}`,
|
|
198
|
+
version: '0.0.0',
|
|
198
199
|
};
|
|
199
200
|
if (packageManager !== 'yarn') {
|
|
200
201
|
const scripts = (updatedPackageJSON.scripts || {});
|
|
@@ -203,6 +204,7 @@ class Generate extends generator_1.GeneratorCommand {
|
|
|
203
204
|
const { default: sortPackageJson } = await import('sort-package-json');
|
|
204
205
|
await (0, promises_1.writeFile)((0, node_path_1.join)(location, 'package.json'), JSON.stringify(sortPackageJson(updatedPackageJSON), null, 2));
|
|
205
206
|
await (0, promises_1.rm)((0, node_path_1.join)(location, 'LICENSE'));
|
|
207
|
+
await (0, promises_1.rm)((0, node_path_1.join)(location, '.github', 'workflows', 'automerge.yml'));
|
|
206
208
|
const existing = (await (0, promises_1.readFile)((0, node_path_1.join)(location, '.gitignore'), 'utf8')).split('\n');
|
|
207
209
|
const updated = (0, util_1.uniq)((0, util_1.compact)([
|
|
208
210
|
'*-debug.log',
|
package/lib/commands/init.js
CHANGED
|
@@ -121,8 +121,8 @@ class Generate extends generator_1.GeneratorCommand {
|
|
|
121
121
|
await this.template((0, node_path_1.join)(this.templatesDir, 'src', 'init', 'run.cmd.ejs'), (0, node_path_1.join)(projectBinPath, 'run.cmd'), templateOptions);
|
|
122
122
|
await this.template((0, node_path_1.join)(this.templatesDir, 'src', 'init', 'run.js.ejs'), (0, node_path_1.join)(projectBinPath, 'run.js'), templateOptions);
|
|
123
123
|
if (process.platform !== 'win32') {
|
|
124
|
-
await (0, generator_1.exec)(`chmod +x ${(0, node_path_1.join)(projectBinPath, 'run.js')}`);
|
|
125
|
-
await (0, generator_1.exec)(`chmod +x ${(0, node_path_1.join)(projectBinPath, 'dev.js')}`);
|
|
124
|
+
await (0, generator_1.exec)(`chmod +x "${(0, node_path_1.join)(projectBinPath, 'run.js')}"`);
|
|
125
|
+
await (0, generator_1.exec)(`chmod +x "${(0, node_path_1.join)(projectBinPath, 'dev.js')}"`);
|
|
126
126
|
}
|
|
127
127
|
const updatedPackageJSON = {
|
|
128
128
|
...packageJSON,
|
package/oclif.manifest.json
CHANGED