Skip to content

Commit 3b6efaa

Browse files
0.9.2
- Add support for Deno 2 PM - Upgrade Gradle and dependencies
1 parent 80a8bfa commit 3b6efaa

File tree

7 files changed

+20
-8
lines changed

7 files changed

+20
-8
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160

161161
# Run Qodana inspections
162162
- name: Qodana - Code Inspection
163-
uses: JetBrains/qodana-action@v2024.1
163+
uses: JetBrains/qodana-action@v2024.2
164164
with:
165165
cache-default-branch-only: true
166166

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212

1313
## [Unreleased]
1414

15+
### Added
16+
17+
- Add support for Deno 2 for installing dependencies
18+
1519
## [0.9.1] - 2024-09-14
1620

1721
### Fixed

build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ intellijPlatform {
8686

8787
ideaVersion {
8888
sinceBuild = providers.gradleProperty("pluginSinceBuild")
89-
untilBuild = providers.gradleProperty("pluginUntilBuild").map { it.ifEmpty { null } }
89+
untilBuild = providers.gradleProperty("pluginUntilBuild").takeIf {
90+
!it.orNull.isNullOrBlank()
91+
} ?: provider { null }
9092
}
9193
}
9294

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pluginGroup = com.github.warningimhack3r.intellijshadcnplugin
44
pluginName = intellij-shadcn-plugin
55
pluginRepositoryUrl = https://github.com/WarningImHack3r/intellij-shadcn-plugin
66
# SemVer format -> https://semver.org
7-
pluginVersion = 0.9.1
7+
pluginVersion = 0.9.2
88

99
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1010
pluginSinceBuild = 223
@@ -21,7 +21,7 @@ platformPlugins = dev.blachut.svelte.lang:223.7571.203, org.jetbrains.plugins.vu
2121
platformBundledPlugins = JavaScript, intellij.webpack
2222

2323
# Gradle Releases -> https://github.com/gradle/gradle/releases
24-
gradleVersion = 8.10
24+
gradleVersion = 8.10.2
2525

2626
# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
2727
kotlin.stdlib.default.dependency = false

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ changelog = "2.2.1"
77
intellijPlatform = "2.0.1"
88
kotlin = "2.0.20"
99
kover = "0.8.3"
10-
qodana = "2024.1.9"
11-
serialization = "1.7.2"
10+
qodana = "2024.2.3"
11+
serialization = "1.7.3"
1212

1313
[libraries]
1414
junit = { group = "junit", name = "junit", version.ref = "junit" }

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

src/main/kotlin/com/github/warningimhack3r/intellijshadcnplugin/backend/helpers/DependencyManager.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ class DependencyManager(private val project: Project) {
2323

2424
enum class PackageManager(val command: String) {
2525
NPM("npm"),
26+
DENO("deno"),
2627
PNPM("pnpm"),
2728
YARN("yarn"),
2829
BUN("bun");
2930

3031
fun getLockFilesNames() = when (this) {
3132
NPM -> listOf("package-lock.json")
33+
DENO -> listOf("deno.lock")
3234
PNPM -> listOf("pnpm-lock.yaml")
3335
YARN -> listOf("yarn.lock")
3436
BUN -> listOf("bun.lockb", "bun.lock")
@@ -58,7 +60,11 @@ class DependencyManager(private val project: Project) {
5860
packageManager.command,
5961
packageManager.getInstallCommand(),
6062
if (installationType == InstallationType.DEV) "-D" else null,
61-
*dependenciesNames.toTypedArray()
63+
*dependenciesNames.let { deps ->
64+
if (packageManager in listOf(PackageManager.DENO)) {
65+
deps.map { "npm:$it" }
66+
} else deps
67+
}.toTypedArray()
6268
).toTypedArray()
6369
// check if the installation was successful
6470
(ShellRunner.getInstance(project).execute(command) != null).also { success ->

0 commit comments

Comments
 (0)