Skip to content

Commit a61adbe

Browse files
Jan LohageJan Lohage
authored andcommitted
install dtslint in its own folder so it isn't bound to the package's package-lock.json.
inspired by cartant/rxjs@22cca2d
1 parent b4adf36 commit a61adbe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ node_modules
3131

3232
dist/
3333
.idea/
34+
dtslint-build/

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"release:major": "npm version major && npm publish",
1616
"changelog": "github_changelog_generator && git add CHANGELOG.md && git commit -am \"Updating changelog\"",
1717
"lint": "semistandard --fix",
18-
"lint:types": "dtslint types/",
18+
"lint:types": "mkdirp dtslint-build && cd dtslint-build && echo '{\"devDependencies\":{\"dtslint\":\"^0.3.0\"},\"scripts\":{\"dtslint\":\"dtslint ../types\"}}' > package.json && npm install && npm run dtslint",
1919
"mocha": "mocha --opts mocha.opts",
2020
"coverage": "istanbul cover node_modules/mocha/bin/_mocha -- --opts mocha.opts",
2121
"test": "npm run lint && npm run coverage"
@@ -71,12 +71,12 @@
7171
"chai": "^4.1.2",
7272
"clone": "^2.1.1",
7373
"coveralls": "^3.0.0",
74-
"dtslint": "^0.3.0",
7574
"feathers-authentication-hooks": "^0.3.0",
7675
"feathers-memory": "^2.1.0",
7776
"feathers-tests-fake-app-users": "^1.0.0",
7877
"http-shutdown": "^1.2.0",
7978
"istanbul": "^1.1.0-alpha.1",
79+
"mkdirp": "^0.5.1",
8080
"mocha": "^5.0.1",
8181
"mongodb": "^3.1.0-beta4",
8282
"semistandard": "^12.0.0",

types/tests.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ actOnDefault(hook1, hook2, hook3, hook4);
8888
// $ExpectType Hook
8989
actOnDispatch(hook1, hook2, hook3, hook4);
9090

91-
9291
// $ExpectType Hook
9392
alterItems(rec => {
9493
delete rec.password;

0 commit comments

Comments
 (0)