Skip to content

Commit e94c558

Browse files
chore(internal): codegen related update
1 parent fea4ecb commit e94c558

File tree

8 files changed

+14
-12
lines changed

8 files changed

+14
-12
lines changed

.devcontainer/devcontainer.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"postCreateCommand": "yarn install",
1010
"customizations": {
1111
"vscode": {
12-
"extensions": [
13-
"esbenp.prettier-vscode"
14-
]
12+
"extensions": ["esbenp.prettier-vscode"]
1513
}
1614
}
1715
}

.github/workflows/release-doctor.yml

-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ jobs:
1919
bash ./bin/check-release-environment
2020
env:
2121
NPM_TOKEN: ${{ secrets.GITPOD_NPM_TOKEN || secrets.NPM_TOKEN }}
22-

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"test": "./scripts/test",
1818
"build": "./scripts/build",
1919
"prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1",
20-
"format": "prettier --write --cache --cache-strategy metadata . !dist",
20+
"format": "./scripts/format",
2121
"prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build && ./scripts/utils/git-swap.sh; fi",
2222
"tsn": "ts-node -r tsconfig-paths/register",
2323
"lint": "./scripts/lint",

release-please-config.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,5 @@
6060
}
6161
],
6262
"release-type": "node",
63-
"extra-files": [
64-
"src/version.ts",
65-
"README.md"
66-
]
63+
"extra-files": ["src/version.ts", "README.md"]
6764
}

scripts/build

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ for file in LICENSE CHANGELOG.md; do
1919
if [ -e "${file}" ]; then cp "${file}" dist; fi
2020
done
2121
if [ -e "bin/cli" ]; then
22-
mkdir dist/bin
22+
mkdir -p dist/bin
2323
cp -p "bin/cli" dist/bin/;
2424
fi
25+
if [ -e "bin/migration-config.json" ]; then
26+
mkdir -p dist/bin
27+
cp -p "bin/migration-config.json" dist/bin/;
28+
fi
2529
# this converts the export map paths for the dist directory
2630
# and does a few other minor things
2731
node scripts/utils/make-dist-package-json.cjs > dist/package.json

scripts/format

+4
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ cd "$(dirname "$0")/.."
66

77
echo "==> Running eslint --fix"
88
./node_modules/.bin/eslint --fix .
9+
10+
echo "==> Running prettier --write"
11+
# format things eslint didn't
12+
./node_modules/.bin/prettier --write --cache --cache-strategy metadata . '!**/dist' '!**/*.ts' '!**/*.mts' '!**/*.cts' '!**/*.js' '!**/*.mjs' '!**/*.cjs'

tsconfig.build.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"rootDir": "./dist/src",
77
"paths": {
88
"@gitpod/sdk/*": ["dist/src/*"],
9-
"@gitpod/sdk": ["dist/src/index.ts"],
9+
"@gitpod/sdk": ["dist/src/index.ts"]
1010
},
1111
"noEmit": false,
1212
"declaration": true,

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"noUncheckedIndexedAccess": true,
3232
"noImplicitOverride": true,
3333
"noPropertyAccessFromIndexSignature": true,
34-
"isolatedModules": false,
34+
"isolatedModules": false,
3535

3636
"skipLibCheck": true
3737
}

0 commit comments

Comments
 (0)