@blocklet/component-studio-cli 0.6.16 → 0.6.17

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 { readFile, writeFile, ensureFile } from 'fs-extra';
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
- await ensureFile(changelogPath);
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/component-studio-cli",
3
- "version": "0.6.16",
3
+ "version": "0.6.17",
4
4
  "description": "CLI for Component Studio",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -12,7 +12,7 @@ jobs:
12
12
  Deploy:
13
13
  runs-on: ubuntu-latest
14
14
 
15
- if: "contains(toJSON(github.event.commits.*.message), '[ci]')"
15
+ if: "!contains(toJSON(github.event.commits.*.message), '[skip ci]')"
16
16
 
17
17
  steps:
18
18
  - name: Checkout repo