diff --git a/package.json b/package.json index 5db8fbb..0bcb891 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-hanger", - "version": "2.1.1", + "version": "2.1.3", "description": "Set of a helpful hooks, for different specific to some primitives types state changing helpers", "author": "kitze", "license": "MIT", @@ -12,10 +12,10 @@ "url": "https://github.com/RIP21" } ], - "main": "index.js", - "module": "es6/index.js", - "jsnext:main": "es6/index.js", - "typings": "index.d.ts", + "main": "./index.js", + "module": "./es6/index.js", + "jsnext:main": "./es6/index.js", + "typings": "./index.d.ts", "engines": { "node": ">=8", "npm": ">=5" @@ -23,9 +23,9 @@ "scripts": { "test": "jest src", "test:watch": "npm run test -- --watch", - "build:es6": "tsc -p tsconfig.json", + "build:es6": "tsc", "build:require": "tsc -p tsconfig-require.json", - "prebuild": "rimraf lib && mkdir lib && npm run test", + "prebuild": "rimraf lib && npm run test", "build": "eslint ./src --ext ts,tsx --max-warnings 0 && npm run build:es6 && npm run build:require", "postbuild": "node copyPackageJsonAndReadme.js", "prerelease": "npm run build", diff --git a/tsconfig-require.json b/tsconfig-require.json index c311f56..8ad5a75 100644 --- a/tsconfig-require.json +++ b/tsconfig-require.json @@ -1,38 +1,8 @@ { + "extends": "./tsconfig.json", "compilerOptions": { - "baseUrl": "./src/", - "rootDir": "src", - "downlevelIteration": true, - "lib": ["dom", "dom.iterable", "esnext"], "module": "commonjs", "target": "es2017", - "esModuleInterop": true, - "jsx": "preserve", - "experimentalDecorators": true, - "forceConsistentCasingInFileNames": false, - "noUnusedParameters": true, - "noUnusedLocals": true, - "suppressImplicitAnyIndexErrors": true, - "skipLibCheck": true, - "resolveJsonModule": true, - "strict": true, - "allowSyntheticDefaultImports": true, - "emitDecoratorMetadata": true, - "outDir": "lib", - "declaration": true, - "sourceMap": true, - "incremental": true - }, - "exclude": [ - "src/**/*.js", - "node_modules", - "example", - "jest", - "src/setupTests.ts", - "src/index.test.ts", - "src/array/index.test.ts" - ], - "include": [ - "src" - ] + "outDir": "./lib" + } } diff --git a/tsconfig.json b/tsconfig.json index 08ee462..1807280 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "baseUrl": "./src/", "rootDir": "src", "downlevelIteration": true, - "lib": ["es6", "dom", "es2016", "es2017"], + "lib": ["dom", "dom.iterable", "esnext"], "module": "es6", "target": "es6", "esModuleInterop": true, @@ -19,10 +19,9 @@ "strict": true, "allowSyntheticDefaultImports": true, "emitDecoratorMetadata": true, - "outDir": "lib/es6", + "outDir": "./lib/es6", "declaration": true, - "sourceMap": true, - "incremental": true + "sourceMap": true }, "exclude": [ "lib",