Skip to content

Commit

Permalink
chore: dual build per tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed Jun 24, 2021
1 parent 30e90bd commit e70e4f5
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 3 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "liform-react-final",
"version": "0.0.0",
"description": "Generate forms from json-schema to use with React and Final Form",
"main": "./dist/index.js",
"main": "dist/node/index.js",
"module": "dist/index.js",
"files": [
"/dist"
],
"scripts": {
"build": "babel src --out-dir dist",
"build": "tsc && tsc --outDir dist/node --target ES5",
"dev": "esbuild public/liform.jsx --servedir=public --outdir=public/build --bundle",
"lint": "eslint src test",
"test": "jest"
Expand Down Expand Up @@ -37,6 +38,7 @@
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.2.2",
"@testing-library/user-event": "12.2.2",
"@types/react": "^17.0.11",
"esbuild": "^0.12.9",
"eslint": "^7.14.0",
"final-form": "^4.20.1",
Expand All @@ -46,7 +48,8 @@
"react-dom": "^17.0.1",
"react-final-form": "^6.5.2",
"react-final-form-arrays": "^3.1.3",
"react-test-renderer": "^17.0.1"
"react-test-renderer": "^17.0.1",
"typescript": "^4.3.4"
},
"dependencies": {
"liform-util": "^0.2.1"
Expand Down
23 changes: 23 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"outDir": "dist",
"declaration": true,
"target": "ES6",
"lib": [
"ESNext",
"DOM"
],
"moduleResolution": "node",
"jsx": "react",
"strict": true,
"allowJs": true,
"checkJs": false,
"esModuleInterop": true,
},
"include": [
"src/*",
],
"exclude": [
"node_modules",
],
}
29 changes: 29 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1361,6 +1361,25 @@
resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.1.5.tgz#b6ab3bba29e16b821d84e09ecfaded462b816b00"
integrity sha512-UEyp8LwZ4Dg30kVU2Q3amHHyTn1jEdhCIE59ANed76GaT1Vp76DD3ZWSAxgCrw6wJ0TqeoBpqmfUHiUDPs//HQ==

"@types/prop-types@*":
version "15.7.3"
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7"
integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==

"@types/react@^17.0.11":
version "17.0.11"
resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.11.tgz#67fcd0ddbf5a0b083a0f94e926c7d63f3b836451"
integrity sha512-yFRQbD+whVonItSk7ZzP/L+gPTJVBkL/7shLEF+i9GC/1cV3JmUxEQz6+9ylhUpWSDuqo1N9qEvqS6vTj4USUA==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
csstype "^3.0.2"

"@types/scheduler@*":
version "0.16.1"
resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.1.tgz#18845205e86ff0038517aab7a18a62a6b9f71275"
integrity sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA==

"@types/stack-utils@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.0.tgz#7036640b4e21cc2f259ae826ce843d277dad8cff"
Expand Down Expand Up @@ -2211,6 +2230,11 @@ cssstyle@^2.2.0:
dependencies:
cssom "~0.3.6"

csstype@^3.0.2:
version "3.0.8"
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.0.8.tgz#d2266a792729fb227cd216fb572f43728e1ad340"
integrity sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==

damerau-levenshtein@^1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.6.tgz#143c1641cb3d85c60c32329e26899adea8701791"
Expand Down Expand Up @@ -5675,6 +5699,11 @@ typedarray-to-buffer@^3.1.5:
dependencies:
is-typedarray "^1.0.0"

typescript@^4.3.4:
version "4.3.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.4.tgz#3f85b986945bcf31071decdd96cf8bfa65f9dcbc"
integrity sha512-uauPG7XZn9F/mo+7MrsRjyvbxFpzemRjKEZXS4AK83oP2KKOJPvb+9cO/gmnv8arWZvhnjVOXz7B49m1l0e9Ew==

unbox-primitive@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.1.tgz#085e215625ec3162574dc8859abee78a59b14471"
Expand Down

0 comments on commit e70e4f5

Please sign in to comment.