Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Update @types/node to the latest version 🚀 (#25)
Browse files Browse the repository at this point in the history
* chore(package): update @types/node to version 6.0.57

https://greenkeeper.io/

* fix: update typings
  • Loading branch information
greenkeeper[bot] authored and KnisterPeter committed Jan 5, 2017
1 parent 6cb8951 commit 6a9bd9e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@types/common-tags": "1.2.5",
"@types/lodash": "4.14.45",
"@types/mkdirp": "0.3.29",
"@types/node": "6.0.56",
"@types/node": "6.0.57",
"ava": "0.17.0",
"common-tags": "1.4.0",
"conventional-changelog-lint": "1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function createContext(config: Config, host: Host, options: BundleOptions): Paec
logger: options.logger || new NoopLogger()
};
context.logger.configure(config);
if (!context.config.input.entryPoint) {
if (!host.fileExists(context.config.input.entryPoint)) {
throw new Error('Missing entry-point');
}
if (context.config.watchMode) {
Expand Down
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export enum LogLevel {

export interface Config {
input: {
entryPoint: string|undefined;
entryPoint: string;
source: SourceSpec;
};
output: {
Expand Down Expand Up @@ -132,7 +132,7 @@ export async function createConfig(options: BundleOptions, host: Host): Promise<
// tslint:disable-next-line cyclomatic-complexity
return {
input: {
entryPoint: options.entryPoint || configFile.input && configFile.input.entry || undefined,
entryPoint: options.entryPoint || configFile.input && configFile.input.entry || 'index.js',
source: getSource(options.source || configFile.input && configFile.input.source || 'es2015')
},
output: {
Expand Down
2 changes: 1 addition & 1 deletion test/bundle-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ test.cb('bundle should check for a config-file', t => {
})
}, '/');

bundle({}, host, (error, context, code) => {
bundle({entryPoint: '/entry-point.js'}, host, (error, context, code) => {
if (error) {
t.fail(error.message);
return t.end();
Expand Down
2 changes: 1 addition & 1 deletion test/config-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test('createConfig should return the config defaults', async t => {

t.deepEqual(config, {
input: {
entryPoint: undefined,
entryPoint: 'index.js',
source: SourceSpec.ES2015
},
output: {
Expand Down

0 comments on commit 6a9bd9e

Please sign in to comment.