You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(gradle-plugin): moved import map output directory
`import_map.json` files are now generated under the target project build directory instead of the root project build directory.
Only projects registered to the SupabaseFunctionAggregateImportMapTask are now taken into account when merging the final `import_map.json`.
Copy file name to clipboardExpand all lines: gradle-plugin/src/main/kotlin/io/github/manriif/supabase/functions/task/SupabaseFunctionAggregateImportMapTask.kt
Task `$compileTaskName` was not found during project sync, common reasons for this error are:
165
+
166
+
- The `$SUPABASE_FUNCTION_PLUGIN_NAME` plugin was applied on a build script where the kotlin multiplatform plugin was not applied (e.g., root build script)
167
+
- The kotlin multiplatform plugin was not applied on this project
168
+
- JS target was not initialized on this project
169
+
- JS target is missing `binaries.library()`
170
+
""".trimIndent()
171
+
)
172
+
}
173
+
166
174
privatefun Project.registerCopyKotlinTask(
167
175
extension:SupabaseFunctionExtension,
168
176
environment:String,
@@ -173,30 +181,27 @@ private fun Project.registerCopyKotlinTask(
Task `$compileSyncTaskName` was not found during project sync, common reasons for this error are:
190
-
191
-
- The `$SUPABASE_FUNCTION_PLUGIN_NAME` plugin was applied on a build script where the kotlin multiplatform plugin was not applied (e.g., root build script)
192
-
- The kotlin multiplatform plugin was not applied on this project
193
-
- JS target was not initialized on this project
194
-
- JS target is missing `binaries.library()`
195
-
""".trimIndent()
196
-
)
203
+
missingJsCompileTaskError(compileSyncTaskName)
197
204
}
198
-
} else {
199
-
dependsOn(compileSyncTaskName)
200
205
}
201
206
202
207
dependsOn(TASK_COPY_JS)
@@ -267,21 +272,20 @@ private fun Project.registerGenerateImportMapTask(
0 commit comments