Skip to content

Commit 25bd16f

Browse files
committed
build: fix to build
publish: 2.1.3 published properly
1 parent d7cefdf commit 25bd16f

File tree

3 files changed

+13
-44
lines changed

3 files changed

+13
-44
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-hanger",
3-
"version": "2.1.1",
3+
"version": "2.1.3",
44
"description": "Set of a helpful hooks, for different specific to some primitives types state changing helpers",
55
"author": "kitze",
66
"license": "MIT",
@@ -12,20 +12,20 @@
1212
"url": "https://github.com/RIP21"
1313
}
1414
],
15-
"main": "index.js",
16-
"module": "es6/index.js",
17-
"jsnext:main": "es6/index.js",
18-
"typings": "index.d.ts",
15+
"main": "./index.js",
16+
"module": "./es6/index.js",
17+
"jsnext:main": "./es6/index.js",
18+
"typings": "./index.d.ts",
1919
"engines": {
2020
"node": ">=8",
2121
"npm": ">=5"
2222
},
2323
"scripts": {
2424
"test": "jest src",
2525
"test:watch": "npm run test -- --watch",
26-
"build:es6": "tsc -p tsconfig.json",
26+
"build:es6": "tsc",
2727
"build:require": "tsc -p tsconfig-require.json",
28-
"prebuild": "rimraf lib && mkdir lib && npm run test",
28+
"prebuild": "rimraf lib && npm run test",
2929
"build": "eslint ./src --ext ts,tsx --max-warnings 0 && npm run build:es6 && npm run build:require",
3030
"postbuild": "node copyPackageJsonAndReadme.js",
3131
"prerelease": "npm run build",

tsconfig-require.json

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,8 @@
11
{
2+
"extends": "./tsconfig.json",
23
"compilerOptions": {
3-
"baseUrl": "./src/",
4-
"rootDir": "src",
5-
"downlevelIteration": true,
6-
"lib": ["dom", "dom.iterable", "esnext"],
74
"module": "commonjs",
85
"target": "es2017",
9-
"esModuleInterop": true,
10-
"jsx": "preserve",
11-
"experimentalDecorators": true,
12-
"forceConsistentCasingInFileNames": false,
13-
"noUnusedParameters": true,
14-
"noUnusedLocals": true,
15-
"suppressImplicitAnyIndexErrors": true,
16-
"skipLibCheck": true,
17-
"resolveJsonModule": true,
18-
"strict": true,
19-
"allowSyntheticDefaultImports": true,
20-
"emitDecoratorMetadata": true,
21-
"outDir": "lib",
22-
"declaration": true,
23-
"sourceMap": true,
24-
"incremental": true
25-
},
26-
"exclude": [
27-
"src/**/*.js",
28-
"node_modules",
29-
"example",
30-
"jest",
31-
"src/setupTests.ts",
32-
"src/index.test.ts",
33-
"src/array/index.test.ts"
34-
],
35-
"include": [
36-
"src"
37-
]
6+
"outDir": "./lib"
7+
}
388
}

tsconfig.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"baseUrl": "./src/",
44
"rootDir": "src",
55
"downlevelIteration": true,
6-
"lib": ["es6", "dom", "es2016", "es2017"],
6+
"lib": ["dom", "dom.iterable", "esnext"],
77
"module": "es6",
88
"target": "es6",
99
"esModuleInterop": true,
@@ -19,10 +19,9 @@
1919
"strict": true,
2020
"allowSyntheticDefaultImports": true,
2121
"emitDecoratorMetadata": true,
22-
"outDir": "lib/es6",
22+
"outDir": "./lib/es6",
2323
"declaration": true,
24-
"sourceMap": true,
25-
"incremental": true
24+
"sourceMap": true
2625
},
2726
"exclude": [
2827
"lib",

0 commit comments

Comments
 (0)