File tree Expand file tree Collapse file tree 6 files changed +14
-6
lines changed Expand file tree Collapse file tree 6 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,13 @@ jobs:
1313 with :
1414 persist-credentials : false
1515
16+ - name : ⬢ Use Node.js
17+ uses : actions/setup-node@v2
18+ with :
19+ node-version : 16.14.2
20+
1621 - name : Install and Build 🔧
17- run : |
18- cd example
19- npm install
20- npm run build
22+ run : yarn && yarn example:build
2123
2224 - name : Deploy 🚀
2325 uses : JamesIves/github-pages-deploy-action@3.6.2
Original file line number Diff line number Diff line change 1313 "react-dom" : " ^18.2.0"
1414 },
1515 "devDependencies" : {
16+ "@types/node" : " ^18.16.0" ,
1617 "@types/react" : " ^18.0.28" ,
1718 "@types/react-dom" : " ^18.0.11" ,
1819 "@vitejs/plugin-react" : " ^3.1.0" ,
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ import react from '@vitejs/plugin-react';
44// https://vitejs.dev/config/
55export default defineConfig ( {
66 plugins : [ react ( ) ] ,
7+ base : process . env . NODE_ENV === 'production' ? '/react-otp-input/' : undefined ,
78} ) ;
Original file line number Diff line number Diff line change 360360 " @jridgewell/resolve-uri" " 3.1.0"
361361 " @jridgewell/sourcemap-codec" " 1.4.14"
362362
363+ " @types/node@^18.16.0 " :
364+ version "18.16.0"
365+ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.16.0.tgz#4668bc392bb6938637b47e98b1f2ed5426f33316"
366+ integrity sha512-BsAaKhB+7X+H4GnSjGhJG9Qi8Tw+inU9nJDwmD5CgOmBLEI6ArdhikpLX7DjbjDRDTbqZzU2LSQNZg8WGPiSZQ==
367+
363368" @types/prop-types@* " :
364369 version "15.7.5"
365370 resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.5.tgz#5f19d2b85a98e9558036f6a3cacc8819420f05cf"
Original file line number Diff line number Diff line change 1111 "lint" : " eslint 'src/**/*.{js,jsx}' --quiet" ,
1212 "lint:fix" : " eslint 'src/**/*.{js,jsx}' --fix" ,
1313 "prepublishOnly" : " rm -rf dist && npm run build" ,
14- "demo:prod " : " cd example && npm run build"
14+ "example:build " : " cd example && yarn && yarn build"
1515 },
1616 "keywords" : [
1717 " otp" ,
Original file line number Diff line number Diff line change 1414 "noImplicitThis" : true ,
1515 "noImplicitAny" : true ,
1616 "strictNullChecks" : true ,
17- "suppressImplicitAnyIndexErrors" : true ,
1817 "allowSyntheticDefaultImports" : true
1918 },
2019 "include" : [" src" ],
You can’t perform that action at this time.
0 commit comments