Skip to content

Commit 2f18f73

Browse files
committed
build(npm): project files determined from npm ignore file
Signed-off-by: Vojtech Masek <[email protected]>
1 parent 8cce9b2 commit 2f18f73

File tree

4 files changed

+12
-22
lines changed

4 files changed

+12
-22
lines changed

.npmignore

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
src/*
2-
output*/
3-
ref*/
41
node_modules/
5-
examples/*
2+
output*/
3+
src/*
4+
tests/
5+
.drone.yml
66
.gitignore
77
.idea
8-
tsconfig.json
9-
yarn.lock
108
CODE_OF_CONDUCT.md
11-
PULL_REQUEST_TEMPLATE.md
9+
package-lock.json
10+
PULL_REQUEST_TEMPLATE.md
11+
tsconfig.json
12+
tslint.json
13+
yarn.lock

package.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,6 @@
1212
"bin": {
1313
"api-client-generator": "./dist/main.js"
1414
},
15-
"files": [
16-
"dist/generator.js",
17-
"dist/generator.js.map",
18-
"dist/main.js",
19-
"dist/main.js.map",
20-
"LICENSE",
21-
"README.md",
22-
"templates/ngx-model.mustache",
23-
"templates/ngx-models-export.mustache",
24-
"templates/ngx-module-export.mustache",
25-
"templates/ngx-service.mustache"
26-
],
2715
"bugs": {
2816
"url": "https://github.com/flowup/api-client-generator/issues"
2917
},
@@ -58,14 +46,14 @@
5846
"scripts": {
5947
"generate": "node ./dist/main.js",
6048
"build": "rimraf dist && tsc",
61-
"lint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts' 'tests/tests.ts'",
49+
"lint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts' 'src/tests.ts'",
6250
"gen": "ts-node ./src/main.ts",
6351
"gen-sports": "rimraf ./tests/sports/api && ts-node ./src/main.ts -s ./tests/sports/swagger.yaml -o ./tests/sports/api",
6452
"gen-esquare": "rimraf ./tests/esquare/api && ts-node ./src/main.ts -s ./tests/esquare/swagger.yaml -o ./tests/esquare/api",
6553
"gen-gcloud-firestore": "rimraf ./tests/gcloud-firestore/api && ts-node ./src/main.ts -s ./tests/gcloud-firestore/swagger.yaml -o ./tests/gcloud-firestore/api",
6654
"gen-github": "rimraf ./tests/github/api && ts-node ./src/main.ts -s ./tests/github/swagger.yaml -o ./tests/github/api",
6755
"release": "npm run build && standard-version --tag-prefix=''",
68-
"test": "ts-node ./tests/tests.ts"
56+
"test": "ts-node ./src/tests.ts"
6957
},
7058
"dependencies": {
7159
"fs-extra": "^5.0.0",
File renamed without changes.

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
},
3232
"include": [
3333
"src/**/*",
34-
"tests/tests.ts"
34+
"src/tests.ts"
3535
]
3636
}

0 commit comments

Comments
 (0)