-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* upgrade typescript to 4.7.4 * [scripts] add extensions to imports * [scripts] configure as ESM * [scripts] fix after converting to ESM * [scripts] fix lint * [scripts] require node >= 14.16 * [scripts] add node: protocol * add scripts/build to .gitignore * [scripts] add typecheck script * add workflow for testing scripts * address PR feedback
- Loading branch information
Showing
16 changed files
with
82 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Test scripts | ||
|
||
defaults: | ||
run: | ||
working-directory: scripts | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- 'scripts/**' | ||
pull_request: | ||
paths: | ||
- 'scripts/**' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
- run: yarn install --frozen-lockfile --check-files | ||
- run: yarn typecheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
packages/*/build | ||
packages/eas-cli/dist | ||
packages/eas-cli/tmp | ||
scripts/build | ||
|
||
# Code editors | ||
.idea | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
{ | ||
"name": "scripts", | ||
"private": true, | ||
"type": "module", | ||
"version": "0.31.0", | ||
"scripts": { | ||
"changelog-entry": "ts-node src/changelogEntry.ts", | ||
"release-changelog": "ts-node src/releaseChangelog.ts", | ||
"update-local-plugin": "./src/updateLocalPlugin.sh" | ||
"changelog-entry": "ts-node-esm src/changelogEntry.ts", | ||
"release-changelog": "ts-node-esm src/releaseChangelog.ts", | ||
"update-local-plugin": "./src/updateLocalPlugin.sh", | ||
"typecheck": "tsc" | ||
}, | ||
"author": "Expo <[email protected]>", | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=14.0.0" | ||
"node": ">=14.16" | ||
}, | ||
"dependencies": { | ||
"dateformat": "4.5.1", | ||
"fs-extra": "10.1.0", | ||
"lodash": "4.17.21", | ||
"lodash-es": "4.17.21", | ||
"marked": "3.0.4", | ||
"nullthrows": "1.1.1", | ||
"semver": "7.3.7", | ||
"tslib": "2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@types/dateformat": "3.0.1", | ||
"@types/fs-extra": "9.0.13", | ||
"@types/lodash": "4.14.182", | ||
"@types/lodash-es": "4.17.6", | ||
"@types/node": "17.0.32", | ||
"@types/semver": "7.3.9", | ||
"ts-node": "10.7.0", | ||
"typescript": "4.6.4" | ||
"typescript": "4.7.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export function nullthrows<T>(value: T | null | undefined, message?: string): T { | ||
if (value !== null && value !== undefined) { | ||
return value; | ||
} | ||
|
||
const error = new Error(message !== undefined ? message : `Got unexpected ${value}`); | ||
(error as any).framesToPop = 1; // Skip nullthrows's own stack frame. | ||
throw error; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.