Skip to content

Commit

Permalink
fix: update package settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mohnoor94 committed Jan 14, 2024
1 parent bba9a41 commit 3e2c07a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 105 deletions.
3 changes: 2 additions & 1 deletion cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import { YamlWriter } from './src/io/writer/YamlWriter';

import { Command } from 'commander';
import * as fs from 'fs';
import { version } from './package.json';

const appName = 'Spec Transformer';
const optionNames = {
Expand All @@ -49,7 +50,7 @@ const optionNames = {

function buildCommand(): Command {
const program = new Command();
program.version('1.0.0')
program.version(version)
.description(`${appName} CLI`)
.option(`-i, --${optionNames.input} [value]`, 'Input file path')
.option(`-if, --${optionNames.inputFormat} [value]`, 'Input file format. Supported formats: json, yaml. Default: yaml')
Expand Down
6 changes: 0 additions & 6 deletions dist/CHANGELOG.md

This file was deleted.

96 changes: 0 additions & 96 deletions dist/package.json

This file was deleted.

2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = {
[
'@semantic-release/exec',
{
successCmd: 'mv CHANGELOG.md ../CHANGELOG.md && mv package.json ../package.json',
successCmd: 'mv CHANGELOG.md ../CHANGELOG.md && mv package.json ../package.json && echo "DONEEE"',
}
]
]
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
// "resolveJsonModule": true, /* Enable importing .json files. */
"resolveJsonModule": true, /* Enable importing .json files. */
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */

Expand Down

0 comments on commit 3e2c07a

Please sign in to comment.