Skip to content

Commit

Permalink
Update the "Publish" task
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Apr 14, 2023
1 parent 3ba883f commit 591112a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,8 @@
],
"peerDependencies": {
"gulp": ">=4.0.0"
},
"scripts": {
"prepack": "lix Dist"
}
}
3 changes: 0 additions & 3 deletions scripts/Publish.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import php_minifier.Version;

/** Publishes the package. **/
function main() {
Sys.command("lix Dist");
Tools.compress(["CHANGELOG.md", "LICENSE.md", "README.md", "haxelib.json", "run.n", "src"], "var/haxelib.zip");
Sys.command("haxelib submit var/haxelib.zip");
Sys.command("npm publish");
for (action in ["tag", "push origin"]) Sys.command('git $action v${Version.packageVersion}');
}

0 comments on commit 591112a

Please sign in to comment.