Skip to content

Commit

Permalink
chore: fix ts docs linter (#7153)
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Chauveau <[email protected]>
Co-authored-by: Gerhard Lazu <[email protected]>
  • Loading branch information
TomChv and gerhard committed Apr 22, 2024
1 parent 01cc1cd commit f4ca0b3
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ class MyModule {
.install([])
.container()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ class MyModule {
return dag
.node({ ctr: this.buildBaseImage(source) })
.commands()
.build()
.build()
.directory("./dist")
}

/*
/*
* Run unit tests
*/
@func()
Expand All @@ -29,12 +29,12 @@ class MyModule {
/*
* Build base image
*/
buildBaseImage(source: Directory): Container {
buildBaseImage(source: Directory): Container {
return dag
.node({ version: "21" })
.withNpm()
.withSource(source)
.install([])
.container()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ class MyModule {
return dag
.node({ ctr: this.buildBaseImage(source) })
.commands()
.build()
.build()
.directory("./dist")
}

/*
/*
* Run unit tests
*/
@func()
Expand All @@ -51,12 +51,12 @@ class MyModule {
/*
* Build base image
*/
buildBaseImage(source: Directory): Container {
buildBaseImage(source: Directory): Container {
return dag
.node({ version: "21" })
.withNpm()
.withSource(source)
.install([])
.container()
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { dag, Container, Directory, object, func, Service } from "@dagger.io/dagger"
import {
dag,
Container,
Directory,
object,
func,
Service,
} from "@dagger.io/dagger"

@object()
class MyModule {
Expand Down Expand Up @@ -59,7 +66,7 @@ class MyModule {
/*
* Build base image
*/
buildBaseImage(source: Directory): Container {
buildBaseImage(source: Directory): Container {
return dag
.node({ version: "21" })
.withNpm()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { dag, Container, Directory, object, func } from "@dagger.io/dagger"

@object()
class MyModule {
/*
/*
* Run unit tests
*/
@func()
Expand All @@ -17,12 +17,12 @@ class MyModule {
/*
* Build base image
*/
buildBaseImage(source: Directory): Container {
buildBaseImage(source: Directory): Container {
return dag
.node({ version: "21" })
.withNpm()
.withSource(source)
.install([])
.container()
}
}
}
1 change: 1 addition & 0 deletions sdk/typescript/runtime/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/dagger.gen.go
/internal/dagger
/internal/querybuilder/
/internal/telemetry/

0 comments on commit f4ca0b3

Please sign in to comment.