Skip to content
Permalink
Browse files

chore: improve first-run experience

  • Loading branch information
MarshallOfSound committed May 23, 2019
1 parent db89c4e commit 49bf7a15ffa2e05184d3d3cb5b816c154715e6d0
Showing with 2 additions and 3 deletions.
  1. +1 −1 package.json
  2. +0 −1 packages/api/cli/package.json
  3. +1 −1 packages/api/core/src/api/init-scripts/init-directory.ts
@@ -35,7 +35,7 @@
"docs:deploy:ci": "ts-node tools/sync-readmes.ts && bolt docs && ts-node tools/copy-now.ts && cd docs && now --token $NOW_TOKEN && now alias --token $NOW_TOKEN",
"lint": "eslint --ext .ts .",
"test": "cross-env TS_NODE_FILES=true yarn run mocha './tools/test-globber.ts'",
"postinstall": "rimraf node_modules/.bin/*.ps1"
"postinstall": "rimraf node_modules/.bin/*.ps1 && ts-node tools/link-ts.ts"
},
"dependencies": {
"@octokit/rest": "^16.26.0",
@@ -7,7 +7,6 @@
"license": "MIT",
"bin": {
"electron-forge": "dist/electron-forge.js",
"forge": "dist/electron-forge.js",
"electron-forge-vscode-nix": "script/vscode.sh",
"electron-forge-vscode-win": "script/vscode.cmd"
},
@@ -14,7 +14,7 @@ export default async (dir: string) => {
if (files.length !== 0) {
d('found', files.length, 'files in the directory. warning the user');
initSpinner.stop(logSymbols.warning);
throw new Error(`The specified path: "${dir}" is not empty, do you wish to continue?`);
throw new Error(`The specified path: "${dir}" is not empty. Please ensure it is empty before initializing a new project`);
}
});
};

0 comments on commit 49bf7a1

Please sign in to comment.
You can’t perform that action at this time.