Skip to content

Commit

Permalink
change build settings
Browse files Browse the repository at this point in the history
  • Loading branch information
gomes042 committed Dec 30, 2022
1 parent 31467ed commit ee761ea
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
build
dist

yarn-error.log
18 changes: 12 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"units",
"react-native-web",
"expo",
"rxn"
"rxn",
"viewport",
"viewport-units"
],
"homepage": "https://github.com/Luffos/rxn-units#readme",
"bugs": {
Expand All @@ -21,12 +23,14 @@
},
"license": "MIT",
"author": "Luffos",
"type": "module",
"main": "build/index.js",
"main": "dist/index.js",
"source": "src/index",
"types": "build/index.d.ts",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "rimraf ./build && tsc --build",
"build": "rimraf ./dist && tsc --build",
"build-watch": "watch \"npm run build\" ./src --interval 1 --wait 0.1",
"prepack": "npm run build"
},
Expand All @@ -36,6 +40,8 @@
"typescript": "^4.6.3"
},
"peerDependencies": {
"react-native": "*"
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-native": "^0.70.5"
}
}
39 changes: 23 additions & 16 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
{
"compilerOptions": {
"outDir": "build",
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"esModuleInterop": true,
"importsNotUsedAsValues": "error",
"outDir": "dist",
"useDefineForClassFields": true,
"allowSyntheticDefaultImports": true,
"allowJs": true,
"forceConsistentCasingInFileNames": true,
"jsx": "react",
"lib": ["esnext"],
"module": "esnext",
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noImplicitUseStrict": false,
"noStrictGenericChecks": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"declaration": true,
"noUncheckedIndexedAccess": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"strict": true,
"target": "esnext"
}
}
"target": "esnext",
"lib": ["dom", "esnext"],
"jsx": "react",
"moduleResolution": "node",
"esModuleInterop": true,
"typeRoots": [
"./ts-declarations",
"node_modules/@types"
],
"declaration": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"strictFunctionTypes": true,
"skipLibCheck": true
},
"include": ["src"]
}

0 comments on commit ee761ea

Please sign in to comment.