Skip to content

Commit

Permalink
test(): update scripts to point to packages folder
Browse files Browse the repository at this point in the history
  • Loading branch information
wbhob committed Nov 25, 2017
1 parent 5305e01 commit 6176027
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ ALWAYS use this folder structure
```
.
├── node_modules
├── packages
├── scripts
├── src
├── packages
└── your-middleware
├── index.ts
├── index.spec.ts
└── package.json
└── template
```

NEVER commit `packages` or `node_modules`.
NEVER commit built files or `node_modules`.
CONSIDER using the [template guide](./template/USING_TEMPLATE.md) to build your middleware.

ALWAYS put your middleware as a direct child of `src`.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"scripts": {
"build": "sh ./scripts/build.sh",
"test": "nyc --require ts-node/register --compilerOptions '{\"rootDir\":\"./src\",\"baseUrl\":\".\",}' mocha src/**/*.spec.ts --reporter spec",
"test": "nyc --require ts-node/register --compilerOptions '{\"rootDir\":\"./src\",\"baseUrl\":\".\",}' mocha packages/**/*.spec.ts --reporter spec",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"clean": "sh ./scripts/clean.sh"
},
Expand Down Expand Up @@ -73,7 +73,7 @@
},
"nyc": {
"include": [
"src/**/*.ts"
"packages/**/*.ts"
],
"exclude": [
"**/*.spec.ts",
Expand Down

0 comments on commit 6176027

Please sign in to comment.