Skip to content

Commit

Permalink
Fixing module structure, build target
Browse files Browse the repository at this point in the history
  • Loading branch information
John Nolette committed Aug 31, 2019
1 parent 0d425a6 commit e6a75c1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/router.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/router.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"lint": "npx tslint src/**.ts && npx eslint __test__/**.js",
"bundle": "npx parcel build src/router.ts",
"bundle": "npx parcel build src/router.ts --global Router --target browser",
"test": "node_modules/.bin/jest --coverage",
"build": "npm run lint && npm run bundle && npm run test"
},
Expand Down
4 changes: 3 additions & 1 deletion src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { IRouterLocation } from './interfaces/event';
import { IConfig } from './interfaces/config';
import { Config } from './config';

export class Router implements IRouter {
class Router implements IRouter {
public config: IConfig;
public location: IRouterLocation;
public previous: IRouterLocation;
Expand Down Expand Up @@ -64,3 +64,5 @@ export class Router implements IRouter {
}
}
}

module.exports = Router;

0 comments on commit e6a75c1

Please sign in to comment.