File tree 3 files changed +12
-4
lines changed
3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 48
48
with :
49
49
path : " ./node_modules"
50
50
key : 16-cache-utils-node-modules-${{ hashFiles('./package-lock.json') }}
51
- # Here we assume that there will always be a cache hit because this workflow can be triggered
52
- # only after tests have already happened on this same code
51
+ - name : Install dependencies
52
+ # We can skip the installation if there was a cache hit
53
+ if : steps.cache-node-modules.outputs.cache-hit != 'true'
54
+ # See https://github.com/npm/cli/issues/4475 to see why --foreground-scripts
55
+ run : npm ci --foreground-scripts
53
56
- name : Build packages
57
+ # If there's a cache hit we still need to manually build the packages
58
+ # this would otherwise have been done automatically as a part of the
59
+ # post-install npm hook
60
+ if : steps.cache-node-modules.outputs.cache-hit == 'true'
54
61
run : |
55
62
npm run build -w packages/commons
56
63
npm run build -w packages/logger & npm run build -w packages/tracer & npm run build -w packages/metrics
Original file line number Diff line number Diff line change 30
30
"license" : " MIT" ,
31
31
"main" : " ./lib/index.js" ,
32
32
"types" : " ./lib/index.d.ts" ,
33
- "typedocMain" : " src/index .ts" ,
33
+ "typedocMain" : " src/file_that_does_not_exist_so_its_ignored_from_api_docs .ts" ,
34
34
"files" : [
35
35
" lib"
36
36
],
Original file line number Diff line number Diff line change 30
30
"license" : " MIT-0" ,
31
31
"main" : " ./lib/index.js" ,
32
32
"types" : " ./lib/index.d.ts" ,
33
+ "typedocMain" : " src/file_that_does_not_exist_so_its_ignored_from_api_docs.ts" ,
33
34
"files" : [
34
35
" lib"
35
36
],
52
53
" serverless" ,
53
54
" nodejs"
54
55
]
55
- }
56
+ }
You can’t perform that action at this time.
0 commit comments