Skip to content

Commit

Permalink
build: fix to build
Browse files Browse the repository at this point in the history
publish: 2.1.3 published properly
  • Loading branch information
RIP21 committed Sep 10, 2019
1 parent d7cefdf commit 25bd16f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 44 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -12,20 +12,20 @@
"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"
},
"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",
Expand Down
36 changes: 3 additions & 33 deletions tsconfig-require.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
7 changes: 3 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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",
Expand Down

0 comments on commit 25bd16f

Please sign in to comment.