Fix nodejs support.

This commit is contained in:
2023-09-05 15:55:05 -07:00
parent 24e8267449
commit ff1c275589
20 changed files with 250 additions and 35 deletions

View File

@ -0,0 +1,13 @@
plugins {
dough_sample
}
kotlin {
sourceSets {
commonMain {
dependencies {
implementation(project(":dough-fs"))
}
}
}
}

View File

@ -0,0 +1 @@
Hello World

View File

@ -0,0 +1,9 @@
import gay.pizza.dough.fs.PlatformFsProvider
import gay.pizza.dough.fs.readString
fun main() {
val currentWorkingDirectory = PlatformFsProvider.currentWorkingDirectory
val helloTextPath = currentWorkingDirectory.resolve("hello.txt")
val content = helloTextPath.readString()
println(content)
}