npm-publish

Gradle plugin for NPM package publishing. Allows for arbitrary publishing as well as seamless integration with Kotlin JS/MPP plugins.

APACHE-2.0 License

Stars
121

Bot releases are hidden (Show)

npm-publish - v2.0.1

Published by mpetuska over 3 years ago

Hotfix to lax duplicationRules for assemble task. Will now warn instead of fail.

Versions

  • Kotlin 1.5.10
  • Gradle 7.0.2
  • JVM 11+
npm-publish - v2.0.0

Published by mpetuska over 3 years ago

A major release migrating the plugin to new id dev.petuska.npm.publish. This was needed for Maven Central publishing.

Version Upgrades

  • Kotlin 1.5.10
  • Gradle 7.0.2
  • JVM 11+

Breaking Changes

  • Plugin id changed from lt.petuska.npm.publish to dev.petuska.npm.publish
  • Root package changed to dev.petuska.npm.publish. To migrate, just raplace lt. part to dev. in all imports you might have (tasks, DSL, etc...)

Improvements

  • Publications now work as expected for nodejs targets (thanks to kotlin 1.5)
npm-publish - v1.1.4

Published by mpetuska over 3 years ago

Fixes issues preventing plugin being used in gradle conventional plugins (closes #7)

npm-publish - v1.1.3

Published by mpetuska over 3 years ago

IR mode dependency resolution hotfix.
With this release, IR assemblies now have transitive npm dependencies declared in direct kotlin.js dependencies hoisted to generated package.json

  • #5 Hoist transitive npm dependencies from bundled kotlin dependencies
npm-publish - v1.1.2

Published by mpetuska over 3 years ago

Improved Kotlin/JS IR support, taking the fact that those now have all kotlin dependencies bundled in js output file already.

  • bundleKotlinDependencies is now completely disabled for autogenerated IR binaries
  • npm-shrinkwrap.json will now not be generated (even if explicitly enabled) if no bundled dependencies are resolved
  • generated JS IR publications now can be imported normally into any yarn & npm project as any other npm dependency
npm-publish - v1.1.1

Published by mpetuska over 3 years ago

  • #1 Option to specify template file (kudos to @Animeshz)
  • General code cleanup
  • Better Gson bidirectional support for PackageJson class