Skip to content

Commit fcba827

Browse files
committed
chore: fix node & npm wd
1 parent bbe20f5 commit fcba827

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

gitnote-jetbrains/build.gradle.kts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import com.github.gradle.node.npm.task.NpmTask
12
import com.github.gradle.node.npm.task.NpxTask
23

34
plugins {
@@ -8,7 +9,7 @@ plugins {
89
}
910

1011
group = "io.cjlee"
11-
version = "0.2.9"
12+
version = "0.2.10"
1213

1314
repositories {
1415
mavenCentral()
@@ -100,16 +101,14 @@ tasks {
100101
commandLine("sh", "copy.sh")
101102
}
102103

103-
register<NpxTask>("npmInstall") {
104+
npmInstall {
105+
104106
workingDir = file("../gitnote-gui")
105-
command.set("npm")
106-
args.set(listOf("install"))
107107
}
108108

109-
register<NpxTask>("buildGui") {
109+
register<NpmTask>("buildGui") {
110110
dependsOn("npmInstall") // Ensure npm is installed
111111
workingDir = file("../gitnote-gui") // Set the working directory to your React project
112-
command.set("npm")
113112
args.set(listOf("run", "build")) // Command to build the React project
114113
}
115114

@@ -124,6 +123,6 @@ tasks {
124123
node {
125124
version = "22.2.0"
126125
npmVersion = "10.7.0"
127-
download = true
128-
workDir = file("../gitnote-gui")
126+
download = !useLocalGui
127+
nodeProjectDir = file("../gitnote-gui")
129128
}

0 commit comments

Comments
 (0)