From 5ddb0a6eee3d3fcaac2877407c8510b724a7ed11 Mon Sep 17 00:00:00 2001 From: Dan Ditomaso Date: Wed, 9 Jul 2025 15:28:51 -0400 Subject: [PATCH] changed license type --- .github/workflows/release.yml | 2 +- deno.json | 3 ++- scripts/build_npm_package.ts | 35 ++--------------------------------- 3 files changed, 5 insertions(+), 35 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3180d502..6043b1bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -71,7 +71,7 @@ jobs: fi echo "Building for NPM..." - deno task publish:npm "$pkg_dir" + deno task build:npm "$pkg_dir" echo "Publishing to NPM..." npm publish "$pkg_dir/npm" --access public diff --git a/deno.json b/deno.json index d98298cd..71604d00 100644 --- a/deno.json +++ b/deno.json @@ -3,12 +3,13 @@ "./packages/web", "./packages/core", "./packages/transport-deno", + "./packages/transport-node", "./packages/transport-http", "./packages/transport-web-bluetooth", "./packages/transport-web-serial" ], "tasks": { - "publish:npm": "deno run -A scripts/build_npm_package.ts" + "build:npm": "deno run -A scripts/build_npm_package.ts" }, "imports": { "@bufbuild/protobuf": "npm:@bufbuild/protobuf@^2.2.3", diff --git a/scripts/build_npm_package.ts b/scripts/build_npm_package.ts index c7cb8358..d6b8d36d 100644 --- a/scripts/build_npm_package.ts +++ b/scripts/build_npm_package.ts @@ -73,7 +73,7 @@ try { name, version, description, - license: "MIT", + license: "GPL-3.0-only", repository: { type: "git", url: "git+https://github.com/meshtastic/web.git", @@ -83,7 +83,7 @@ try { }, }, compilerOptions: { - lib: ["ES2022", "DOM"], + lib: ["DOM", "ESNext"], }, postBuild() { Deno.copyFileSync("LICENSE", join(outDir, "LICENSE")); @@ -99,34 +99,3 @@ try { } console.log(`āœ… Successfully built ${name}@${version} to ${outDir}`); - -// // 5. Publish to NPM (only during adhoc runs) -// // After a successful build, we publish the package to the npm registry. -// if (Deno.env.get("GITHUB_ACTIONS") !== "true") { -// console.log( -// `\nPublishing ${name}@${version} to npm...`, -// ); -// try { -// const command = new Deno.Command("npm", { -// args: ["publish", "--access", "public"], -// cwd: outDir, // Run the command in the output directory -// }); -// const { code, stdout, stderr } = await command.output(); - -// // Write command output to the console -// await Deno.stdout.write(stdout); -// await Deno.stderr.write(stderr); - -// if (code !== 0) { -// throw new Error(`'npm publish' failed with exit code: ${code}`); -// } -// console.log(`āœ… Successfully published ${name}@${version} to npm.`); -// } catch (error) { -// if (error instanceof Deno.errors.NotFound) { -// console.error("\nāŒ Publishing failed:", error.message); -// Deno.exit(1); -// } -// } -// } else { -// console.log("\nSkipping publish step: Not running in GitHub Actions CI."); -// }