Skip to content

Commit

Permalink
Bump TS node types to match current node version, to fix annoying nod…
Browse files Browse the repository at this point in the history
…e warning
  • Loading branch information
Ekrekr committed Mar 26, 2024
1 parent d260d30 commit 33a4a5e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cli/api/commands/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export async function compile(
compiledGraph = dataform.CompiledGraph.create(decodedResult.compile.compiledGraph);

if (workflowSettingsDataformCoreVersion) {
fs.rmdirSync(temporaryProjectPath, { recursive: true });
fs.rmSync(temporaryProjectPath, { recursive: true });
}

return compiledGraph;
Expand Down
2 changes: 1 addition & 1 deletion cli/api/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class Runner {

public cancel() {
this.cancelled = true;
this.eEmitter.emit(CANCEL_EVENT);
this.eEmitter.emit(CANCEL_EVENT, undefined, undefined);
}

public async result(): Promise<dataform.IRunResult> {
Expand Down
4 changes: 2 additions & 2 deletions cli/api/utils/cancellable_promise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class CancellablePromise<T> implements PromiseLike<T> {
): Promise<S> {
// TODO: Seems like local and remote bazel builds behave
// differently and I can't get this to type correctly for both.
return (this.promise.then(onfulfilled, onrejected) as any);
return this.promise.then(onfulfilled, onrejected) as any;
}

public catch(onRejected?: (reason: any) => PromiseLike<never>): Promise<T> {
Expand All @@ -41,6 +41,6 @@ export class CancellablePromise<T> implements PromiseLike<T> {

public cancel(): void {
this.cancelled = true;
this.emitter.emit(CancellablePromise.CANCEL_EVENT);
this.emitter.emit(CancellablePromise.CANCEL_EVENT, undefined, undefined);
}
}
2 changes: 1 addition & 1 deletion cli/console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export function printExecutedAction(
switch (executionAction.type) {
case "table": {
writeStdOut(
`${successOutput("Dataset created: ")} ${datasetString(
`${successOutput("Table created: ")} ${datasetString(
executionAction.target,
executionAction.tableType,
executionAction.tasks.length === 0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@types/json-stable-stringify": "^1.0.32",
"@types/long": "^4.0.0",
"@types/moo": "^0.5.0",
"@types/node": "^12.12.6",
"@types/node": "^16.16.0",
"@types/readline-sync": "^1.4.3",
"@types/request": "^2.48.3",
"@types/rimraf": "^2.0.2",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,10 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.38.tgz#f8bb07c371ccb1903f3752872c89f44006132947"
integrity "sha1-+LsHw3HMsZA/N1KHLIn0QAYTKUc= sha512-5jY9RhV7c0Z4Jy09G+NIDTsCZ5G0L5n+Z+p+Y7t5VJHM30bgwzSjVtlcBxqAj+6L/swIlvtOSzr8rBk/aNyV2g=="

"@types/node@^12.12.6":
version "12.12.42"
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.42.tgz#d0d1149336bd07540dd1ea576692829d575dec34"
integrity "sha1-0NEUkza9B1QN0epXZpKCnVdd7DQ= sha512-R/9QdYFLL9dE9l5cWWzWIZByVGFd7lk7JVOJ7KD+E1SJ4gni7XJRLz9QTjyYQiHIqEAgku9VgxdLjMlhhUaAFg=="
"@types/node@^16.16.0":
version "16.18.91"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.91.tgz#3e7b3b3d28f740e3e2d4ceb7ad9d16e6b9277c91"
integrity sha512-h8Q4klc8xzc9kJKr7UYNtJde5TU2qEePVyH3WyzJaUC+3ptyc5kPQbWOIUcn8ZsG5+KSkq+P0py0kC0VqxgAXw==

"@types/readline-sync@^1.4.3":
version "1.4.3"
Expand Down

0 comments on commit 33a4a5e

Please sign in to comment.