stdlib: rename js/react.#App to js/yarn.#Package

Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
Solomon Hykes
2021-05-12 23:32:02 +00:00
committed by Solomon Hykes
parent 56ef4c1928
commit 16edfc4fec
6 changed files with 23 additions and 27 deletions

View File

@@ -3,7 +3,7 @@ package main
import (
"dagger.io/dagger"
"dagger.io/netlify"
"dagger.io/js/react"
"dagger.io/js/yarn"
"dagger.io/git"
)
@@ -30,7 +30,7 @@ frontend: {
}
frontend: {
app: react.#App & {
app: yarn.#Package & {
source: frontend.source
env: frontend.environment
@@ -38,10 +38,8 @@ frontend: {
writeEnvFile: frontend.writeEnvFile
}
yarn: {
script: frontend.yarn.script
buildDir: frontend.yarn.buildDir
}
script: frontend.yarn.script
buildDir: frontend.yarn.buildDir
}
// Host the application with Netlify