Skip to content

Commit

Permalink
Few more follow up module tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Ginnivan committed Aug 28, 2019
1 parent 9561677 commit 4e912da
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 3,047 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "all"
}
}
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"es2015": "dist/es2015/index.js",
"sideEffects": false,
"scripts": {
"prepack": "yarn build",
"build": "yarn build:es2015 && yarn build:esm && yarn build:cjs",
Expand All @@ -13,29 +14,26 @@
"build:cjs": "tsc --module commonjs --target es5 --outDir dist/cjs -p tsconfig.build.json",
"lint": "yarn tslint --project .",
"test": "jest",
"verify": "yarn tsc -p tsconfig.json && yarn test && yarn lint",
"cz": "git-cz"
"verify": "yarn tsc -p tsconfig.json && yarn test && yarn lint"
},
"author": "Jake Ginnivan",
"license": "MIT",
"devDependencies": {
"@types/cross-spawn": "^6.0.0",
"@types/jest": "^24.0.18",
"@types/mock-knex": "^0.4.1",
"commitizen": "^4.0.3",
"cross-spawn": "^6.0.5",
"cz-conventional-changelog": "^3.0.2",
"jest": "^24.9.0",
"knex": "^0.19.2",
"mock-knex": "^0.4.3",
"ts-jest": "^24.0.2",
"tslint": "^5.12.0",
"tslint-config-prettier": "^1.17.0",
"tslint-eslint-rules": "^5.4.0",
"typescript": "^3.2.2"
"typescript": "^3.5.3"
},
"peerDependencies": {
"knex": "^0.16.0",
"tslib": "^1.9.3"
"tslib": "^1.10.0"
}
}
}
17 changes: 9 additions & 8 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
"include": ["src/index.ts"],
"extends": "./tsconfig.json",
"compilerOptions": {
"importHelpers": true /* Import emit helpers from 'tslib'. */,
"noEmit": false /* Do not emit outputs. */,
"declaration": true /* Generates corresponding '.d.ts' file. */,
"sourceMap": true /* Generates corresponding '.map' file. */,
"noEmit": false,
"declaration": true,
"sourceMap": true,
"noEmitHelpers": true,
"importHelpers": true,

/* Additional Checks */
"noUnusedLocals": true /* Report errors on unused locals. */,
"noUnusedParameters": true /* Report errors on unused parameters. */,
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
}
}
16 changes: 7 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
"exclude": ["node_modules", "dist", "src/type-safety-fixtures"],
"compilerOptions": {
"target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"lib": [
"es2015"
] /* Specify library files to be included in the compilation. */,
"noEmit": true /* Do not emit outputs. */,
"strict": true /* Enable all strict type-checking options. */,
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"target": "es5",
"module": "commonjs",
"lib": ["es2015"],
"noEmit": true,
"strict": true,
"moduleResolution": "node",
"esModuleInterop": true
}
}
Loading

0 comments on commit 4e912da

Please sign in to comment.