chore: improve docs and scripts (#9107)

This PR updates some docs and scripts related to the recent changes in
the repository.
This commit is contained in:
jrandolf
2022-10-13 18:55:11 +02:00
committed by GitHub
parent 1fbc3c643f
commit 6a05d8e9c1
11 changed files with 174 additions and 201 deletions

27
test/package.json Normal file
View File

@@ -0,0 +1,27 @@
{
"private": true,
"scripts": {
"build": "wireit",
"clean": "tsc -b --clean && rimraf build"
},
"wireit": {
"build": {
"command": "tsc -b",
"clean": "if-file-deleted",
"dependencies": [
"../packages/puppeteer:build",
"../packages/testserver:build"
],
"files": [
"src/**"
],
"output": [
"build/**",
"tsconfig.tsbuildinfo"
]
}
},
"dependencies": {
"puppeteer": "file:../packages/puppeteer"
}
}

View File

@@ -7,7 +7,7 @@ set -e
# 2. The install script works and correctly exits without errors
# 3. Requiring/importing Puppeteer from Node works.
# MacOS doesn't support realpath
# macOS doesn't support realpath
realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}