Skip to content

Commit

Permalink
move base tsconfig; upd deps; bump to v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchen committed Jan 1, 2021
1 parent 5b7b330 commit 9733d19
Show file tree
Hide file tree
Showing 8 changed files with 91 additions and 83 deletions.
2 changes: 1 addition & 1 deletion config/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.base",
"extends": "../tsconfig",
"compilerOptions": {
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"outDir": "../dist/cjs" /* Redirect output structure to the directory. */
Expand Down
2 changes: 1 addition & 1 deletion config/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.base",
"extends": "../tsconfig",
"compilerOptions": {
"module": "ESNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"outDir": "../dist/esm" /* Redirect output structure to the directory. */
Expand Down
2 changes: 1 addition & 1 deletion config/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.base",
"extends": "../tsconfig",
"compilerOptions": {
"declaration": true /* Generates corresponding '.d.ts' file. */,
"emitDeclarationOnly": true,
Expand Down
2 changes: 1 addition & 1 deletion config/tsconfig.umd.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.base",
"extends": "../tsconfig",
"compilerOptions": {
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"declaration": false /* Generates corresponding '.d.ts' file. */
Expand Down
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ module.exports = {
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json'
}
}
}
147 changes: 75 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example-typescript-package",
"version": "0.1.0",
"version": "0.1.1",
"description": "",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -50,17 +50,17 @@
"dependencies": {},
"devDependencies": {
"@types/jest": "^26.0.19",
"@typescript-eslint/eslint-plugin": "^4.11.0",
"@typescript-eslint/parser": "^4.11.0",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@typescript-eslint/parser": "^4.11.1",
"eslint": "^7.16.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-prettier": "^3.3.0",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"ts-jest": "^26.4.4",
"ts-loader": "^8.0.12",
"ts-loader": "^8.0.13",
"typescript": "^4.1.3",
"webpack": "^5.11.0",
"webpack-cli": "^4.3.0"
"webpack": "^5.11.1",
"webpack-cli": "^4.3.1"
}
}
2 changes: 1 addition & 1 deletion config/tsconfig.base.json → tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@
// "skipLibCheck": true, /* Skip type checking of declaration files. */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
},
"include": ["../src/**/*"]
"include": ["src/**/*"]
}

0 comments on commit 9733d19

Please sign in to comment.