Skip to content

Commit 6f484f2

Browse files
committed
Default path changed
1 parent 6e92628 commit 6f484f2

File tree

11 files changed

+93
-190
lines changed

11 files changed

+93
-190
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,11 @@ jobs:
2323
- run: npm ci
2424
# puppeteer-screen-recorder installs puppeteer by default, so we need to delete both
2525
- run: npm uninstall puppeteer puppeteer-screen-recorder
26-
# this will create fresh install in node_modules/puppeteer-chromium
26+
# this will create fresh install in puppeteer-chromium
2727
- run: npm install puppeteer
28-
- run: chmod -R +x node_modules/puppeteer-chromium
29-
# Since puppeteer-screen-recorder will delete cache folder we will save it in parent folder
30-
- run: mv node_modules/puppeteer-chromium puppeteer-chromium
28+
- run: chmod -R +x puppeteer-chromium
3129
- run: npm install puppeteer-screen-recorder
3230
# Moving puppeteer-chromium back to default cache folder
33-
- run: mv puppeteer-chromium node_modules/puppeteer-chromium
3431
- run: npm install -g typescript
3532
- run: tsc
3633

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,5 @@ dist
102102

103103
# TernJS port file
104104
.tern-port
105+
106+
puppeteer-chromium/

.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Launch Program",
11+
"skipFiles": [
12+
"<node_internals>/**"
13+
],
14+
"program": "${workspaceFolder}\\test.js",
15+
"outFiles": [
16+
"${workspaceFolder}/dist/**/*.js"
17+
]
18+
}
19+
]
20+
}

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ COPY package.json ${FUNCTION_DIR}
5252
COPY src ${FUNCTION_DIR}/src
5353
COPY index.js ${FUNCTION_DIR}
5454
COPY node_modules ${FUNCTION_DIR}/node_modules
55+
COPY puppeteer-chromium ${FUNCTION_DIR}/puppeteer-chromium
5556

5657
WORKDIR ${FUNCTION_DIR}
5758

0 commit comments

Comments
 (0)