Skip to content

Commit

Permalink
feat(init): confirm scaffolded config after init
Browse files Browse the repository at this point in the history
  • Loading branch information
chimurai committed Nov 28, 2019
1 parent 88984c1 commit 881bd58
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "requirements",
"version": "1.3.0",
"version": "1.3.1",
"license": "MIT",
"author": "chimurai",
"homepage": "https://github.com/chimurai/requirements",
Expand All @@ -9,7 +9,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/chimurai/requirements.git"
"url": "git+https://github.com/chimurai/requirements.git"
},
"keywords": [
"requirements",
Expand Down
13 changes: 0 additions & 13 deletions requirements.config.js

This file was deleted.

4 changes: 4 additions & 0 deletions src/scaffold.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as fs from 'fs';
import * as semver from 'semver';
import * as chalk from 'chalk';

const FILENAME = 'requirements.config.js';

Expand All @@ -23,6 +24,9 @@ export function scaffold() {
}

fs.writeFileSync(FILENAME, TEMPLATE);

const filepath = `${process.cwd()}/${FILENAME}`;
console.log(chalk.dim(`Created config: ${filepath}`));
}

function hasExistingConfig() {
Expand Down

0 comments on commit 881bd58

Please sign in to comment.