Skip to content

Commit

Permalink
fix: use the complete arg system to be iso standard-version
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Apr 27, 2022
1 parent 6bc6768 commit 6364170
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 75 deletions.
11 changes: 0 additions & 11 deletions android-version-updater.js

This file was deleted.

47 changes: 0 additions & 47 deletions index.js

This file was deleted.

11 changes: 0 additions & 11 deletions ios-version-updater.js

This file was deleted.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "capacitor-standard-version",
"version": "1.0.2",
"version": "1.0.4",
"description": "Default standard-version config for capacitor app",
"main": "index.js",
"main": "dist/index.js",
"bin": {
"capacitor-standard-version": "index.js"
"capacitor-standard-version": "dist/index.js"
},
"scripts": {
"dev": "set NODE_ENV=development&& npx webpack --config webpack.config.js",
Expand Down
6 changes: 3 additions & 3 deletions src/bin/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import standardVersion from 'standard-version';
import { getConfiguration } from 'standard-version/lib/configuration';
import command from 'standard-version/command';
import merge from 'merge-deep';
import * as ios from './ios';
import * as android from './android';
Expand Down Expand Up @@ -36,9 +36,9 @@ const baseConfig = {

async function run() {
try {
const config = getConfiguration();
console.log('command', command)
// merge base config with user config
const finalConfig = merge(baseConfig, config);
const finalConfig = merge(baseConfig, command.argv);
await standardVersion(finalConfig);
} catch (error) {
console.error(error);
Expand Down

0 comments on commit 6364170

Please sign in to comment.