Skip to content

Commit

Permalink
[chore] Cleanup config files
Browse files Browse the repository at this point in the history
  • Loading branch information
Xapphire13 committed Apr 13, 2019
1 parent 21184d2 commit 5618625
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 17 deletions.
5 changes: 3 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jest.setup.ts
# Configs
.travis.yml
tsconfig.json
tsconfig.*.json
tslint.json
typescript/
.eslintrc.yml
.prettierrc.yml
.huskyrc.json

# Lock files
Expand Down
File renamed without changes.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
"es2015": "./dist/esm2015/index.js",
"typings": "./dist/typings/index.d.ts",
"scripts": {
"build": "rimraf ./dist && tsc && tsc -p tsconfig.esm5.json && tsc -p tsconfig.esm2015.json && tsc -p tsconfig.types.json",
"build": "npm run clean && npm run build:cjs && npm run build:es5 && npm run build:es2015 && npm run build:types",
"build:cjs": "tsc",
"build:es5": "tsc -p ./typescript/tsconfig.esm5.json",
"build:es2015": "tsc -p ./typescript/tsconfig.esm2015.json",
"build:types": "tsc -p ./typescript/tsconfig.types.json",
"clean": "rimraf ./dist",
"test": "npm run lint && jest",
"test:coverage": "jest --coverage",
"lint": "prettier --check \"src/**/*.ts\" && eslint **/*.ts"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.base.json",
"extends": "./typescript/tsconfig.base.json",
"compilerOptions": {
"target": "es2015",
"module": "commonjs",
Expand Down
File renamed without changes.
6 changes: 2 additions & 4 deletions tsconfig.base.json → typescript/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
"outDir": "dist",
"stripInternal": true,
"moduleResolution": "node",
"importHelpers": true,
"importHelpers": true
},
"include": [
"src/"
]
"include": ["../src/"]
}
4 changes: 2 additions & 2 deletions tsconfig.esm2015.json → typescript/tsconfig.esm2015.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"compilerOptions": {
"target": "es2015",
"module": "es2015",
"outDir": "./dist/esm2015"
"outDir": "../dist/esm2015"
}
}
}
4 changes: 2 additions & 2 deletions tsconfig.esm5.json → typescript/tsconfig.esm5.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"compilerOptions": {
"target": "es5",
"module": "es2015",
"outDir": "./dist/esm5",
"outDir": "../dist/esm5",
"lib": ["es5", "es2015.iterable", "es2015.collection", "es2015.symbol"]
},
"files": ["src/es5Types.d.ts"]
"files": ["./es5Types.d.ts"]
}
8 changes: 3 additions & 5 deletions tsconfig.types.json → typescript/tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
"target": "esnext",
"removeComments": false,
"declaration": true,
"declarationDir": "./dist/typings",
"declarationDir": "../dist/typings",
"emitDeclarationOnly": true
},
"exclude": [
"src/__tests__"
]
}
"exclude": ["../src/__tests__"]
}

0 comments on commit 5618625

Please sign in to comment.