Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wasm filename should be last part of package name #754

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
- fix: CORS: allow all request headers [#741](https://github.com/hypermodeinc/modus/pull/741)
- fix: accept long base64 strings [#742](https://github.com/hypermodeinc/modus/pull/742)
- fix: improve dgraph auth header passing [#752](https://github.com/hypermodeinc/modus/pull/752)
- fix: jwks endpoint should use key ID if available [#730](https://github.com/hypermodeinc/modus/pull/753)
- fix: jwks endpoint should use key ID if available [#753](https://github.com/hypermodeinc/modus/pull/753)
- fix: wasm filename should be last part of package name [#754](https://github.com/hypermodeinc/modus/pull/754)

## 2025-01-24 - Runtime 0.17.1

Expand Down
5 changes: 4 additions & 1 deletion sdk/assemblyscript/src/bin/build-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import console from "console";
import semver from "semver";

const npmPath = process.env.npm_execpath;
const pkg = process.env.npm_package_name;
let pkg = process.env.npm_package_name;

if (!npmPath) {
console.error("This script must be run with npm.");
Expand All @@ -29,6 +29,9 @@ if (!pkg) {
process.exit(1);
}

// take only the last segment of the package name (e.g. @my-org/my-project -> my-project)
pkg = pkg.split("/").pop();

const target = process.argv[2] || "debug";
if (target !== "debug" && target !== "release") {
console.error("Invalid target. Use 'debug' or 'release'");
Expand Down