diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 0000000..55e19a4
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+permission-checker
\ No newline at end of file
diff --git a/.idea/artifacts/permission_checker_js_2_0.xml b/.idea/artifacts/permission_checker_js_2_0.xml
new file mode 100644
index 0000000..8e2b75e
--- /dev/null
+++ b/.idea/artifacts/permission_checker_js_2_0.xml
@@ -0,0 +1,8 @@
+
+
+ $PROJECT_DIR$/build/libs
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/artifacts/permission_checker_jvm_2_0.xml b/.idea/artifacts/permission_checker_jvm_2_0.xml
new file mode 100644
index 0000000..33bc962
--- /dev/null
+++ b/.idea/artifacts/permission_checker_jvm_2_0.xml
@@ -0,0 +1,8 @@
+
+
+ $PROJECT_DIR$/build/libs
+
+
+
+
+
\ No newline at end of file
diff --git a/build.gradle.kts b/build.gradle.kts
index 7f9a4cf..0bbb090 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -69,4 +69,20 @@ publishing {
}
}
}
+}
+
+tasks.register("prepareNpmPublication") {
+ dependsOn("jsProductionExecutableCompileSync", "jsPackageJson")
+ from("build/js/packages/${project.name}", "README.md")
+ into("build/npm")
+}
+
+tasks.register("publishToNpm") {
+ dependsOn("prepareNpmPublication")
+ doLast {
+ exec {
+ workingDir("build/npm")
+ commandLine("npm", "publish")
+ }
+ }
}
\ No newline at end of file
diff --git a/settings.gradle.kts b/settings.gradle.kts
index de26cd9..a28e6f3 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -1,5 +1,5 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
-rootProject.name = "Permission-Checker"
+rootProject.name = "permission-checker"