File tree 11 files changed +4574
-71
lines changed
11 files changed +4574
-71
lines changed Original file line number Diff line number Diff line change 1
1
/node_modules
2
2
/dist
3
3
/* .tgz
4
- .vercel
4
+ /.next
5
+ /.vercel
Original file line number Diff line number Diff line change 1
1
/node_modules
2
- /yarn.lock
3
- /package.json
4
- /tsconfig.json
5
2
/README.md
6
- /src
7
3
/dist
8
4
/test
9
5
/. *
10
6
/* .tgz
7
+ /.next
8
+ /.vercel
Original file line number Diff line number Diff line change
1
+ /// <reference types="next" />
2
+ /// <reference types="next/types/global" />
Original file line number Diff line number Diff line change 16
16
],
17
17
"scripts" : {
18
18
"prebuild" : " rimraf dist" ,
19
- "build" : " tsc" ,
19
+ "build" : " tsc --project src/tsconfig.json " ,
20
20
"postbuild" : " cpy src '!**/*.ts' dist" ,
21
+ "now-build" : " next build" ,
21
22
"prepublishOnly" : " npm run build"
22
23
},
23
24
"dependencies" : {
26
27
},
27
28
"devDependencies" : {
28
29
"@types/node" : " ^12.12.17" ,
30
+ "@types/react" : " ^16.9.41" ,
29
31
"@typescript-eslint/eslint-plugin" : " 1.6.0" ,
30
32
"@typescript-eslint/parser" : " 1.1.0" ,
31
33
"@vercel/build-utils" : " ^2.3.1" ,
39
41
"eslint-plugin-import" : " 2.16.0" ,
40
42
"eslint-plugin-jsx-a11y" : " 6.2.1" ,
41
43
"eslint-plugin-react" : " 7.12.4" ,
44
+ "next" : " ^9.4.4" ,
45
+ "react" : " ^16.13.1" ,
46
+ "react-dom" : " ^16.13.1" ,
42
47
"rimraf" : " ^3.0.0" ,
43
- "typescript" : " ^3.5 .3"
48
+ "typescript" : " ^3.9 .3"
44
49
}
45
50
}
Original file line number Diff line number Diff line change
1
+ export default ( ) => {
2
+ return < div > Hello Bash</ div > ;
3
+ } ;
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ import fs from 'fs' ;
1
2
import execa from 'execa' ;
2
3
import { join } from 'path' ;
3
4
import { snakeCase } from 'snake-case' ;
@@ -11,6 +12,11 @@ import {
11
12
shouldServe
12
13
} from '@vercel/build-utils' ;
13
14
15
+ // `chmod()` is required for usage with `vercel-dev-runtime`
16
+ // since file mode is not preserved in Vercel deployments.
17
+ fs . chmodSync ( join ( __dirname , 'build.sh' ) , 0o755 ) ;
18
+ fs . chmodSync ( join ( __dirname , 'bootstrap' ) , 0o755 ) ;
19
+
14
20
// From this list: https://import.pw/importpw/import/docs/config.md
15
21
const allowedConfigImports = new Set ( [
16
22
'CACHE' ,
@@ -66,7 +72,7 @@ export async function build({
66
72
ENTRYPOINT : entrypoint
67
73
} ;
68
74
69
- const builderPath = join ( __dirname , 'builder .sh' ) ;
75
+ const builderPath = join ( __dirname , 'build .sh' ) ;
70
76
71
77
await execa ( builderPath , [ ] , {
72
78
env,
Original file line number Diff line number Diff line change
1
+ {
2
+ "compilerOptions" : {
3
+ "strict" : true ,
4
+ "module" : " CommonJS" ,
5
+ "target" : " es2018" ,
6
+ "esModuleInterop" : true ,
7
+ "lib" : [" esnext" ],
8
+ "outDir" : " ../dist" ,
9
+ "sourceMap" : true ,
10
+ "declaration" : true
11
+ },
12
+ "include" : [" **/*.ts" ],
13
+ "exclude" : [" node_modules" ]
14
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
- "strict" : true ,
4
- "module" : " CommonJS" ,
5
- "target" : " es2015" ,
3
+ "target" : " es5" ,
4
+ "lib" : [
5
+ " dom" ,
6
+ " dom.iterable" ,
7
+ " esnext"
8
+ ],
9
+ "allowJs" : true ,
10
+ "skipLibCheck" : true ,
11
+ "strict" : false ,
12
+ "forceConsistentCasingInFileNames" : true ,
13
+ "noEmit" : true ,
6
14
"esModuleInterop" : true ,
7
- "lib" : [" esnext" ],
8
- "outDir" : " dist" ,
9
- "sourceMap" : true ,
10
- "declaration" : true
15
+ "module" : " esnext" ,
16
+ "moduleResolution" : " node" ,
17
+ "resolveJsonModule" : true ,
18
+ "isolatedModules" : true ,
19
+ "jsx" : " preserve"
11
20
},
12
- "include" : [" src/**/*" ],
13
- "exclude" : [" node_modules" ]
21
+ "exclude" : [
22
+ " node_modules" ,
23
+ " src"
24
+ ],
25
+ "include" : [
26
+ " next-env.d.ts" ,
27
+ " pages/*.tsx"
28
+ ]
14
29
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"public" : true ,
3
3
"functions" : {
4
- "api/*.sh" : { "runtime" : " vercel-bash@3 .0.7 " }
4
+ "api/*.sh" : { "runtime" : " vercel-dev-runtime@0 .0.1 " }
5
5
}
6
6
}
You can’t perform that action at this time.
0 commit comments