@blocklet/component-studio-cli 0.6.16 → 0.6.18
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { execSync } from 'child_process';
|
|
3
3
|
import { Command } from 'commander';
|
|
4
|
-
import {
|
|
4
|
+
import { existsSync } from 'fs';
|
|
5
|
+
import { readFile, writeFile } from 'fs/promises';
|
|
5
6
|
import inquirer from 'inquirer';
|
|
6
7
|
import ora from 'ora';
|
|
7
8
|
import { join } from 'path';
|
|
@@ -75,7 +76,10 @@ export function createBumpVersionCommand() {
|
|
|
75
76
|
});
|
|
76
77
|
// Update changelog
|
|
77
78
|
const changelogPath = join(blockletInfoPath, 'CHANGELOG.md');
|
|
78
|
-
|
|
79
|
+
// ensure changelog file exists
|
|
80
|
+
if (!existsSync(changelogPath)) {
|
|
81
|
+
await writeFile(changelogPath, '');
|
|
82
|
+
}
|
|
79
83
|
let oldChangelog = '';
|
|
80
84
|
try {
|
|
81
85
|
oldChangelog = await readFile(changelogPath, 'utf-8');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
name: Upload To Blocklet Store
|
|
2
2
|
|
|
3
3
|
env:
|
|
4
|
-
NODE_OPTIONS:
|
|
4
|
+
NODE_OPTIONS: '--max_old_space_size=8192'
|
|
5
5
|
|
|
6
6
|
on:
|
|
7
7
|
push:
|
|
@@ -58,7 +58,7 @@ jobs:
|
|
|
58
58
|
COMPONENT_STORE_URL: ${{ env.STORE_ENDPOINT }}
|
|
59
59
|
with:
|
|
60
60
|
deps-server-version: beta
|
|
61
|
-
skip-deps:
|
|
61
|
+
skip-deps: false
|
|
62
62
|
skip-release: true
|
|
63
63
|
skip-deploy: true
|
|
64
64
|
skip-bundle: true
|