Skip to content

Commit

Permalink
chore: improve first-run experience
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed May 23, 2019
1 parent db89c4e commit 49bf7a1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion packages/api/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/api/core/src/api/init-scripts/init-directory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.