From 02c9e4691b429b4a0ec85b71eace37b72515d055 Mon Sep 17 00:00:00 2001 From: Manolis Liolios Date: Thu, 31 Oct 2024 23:38:15 +0200 Subject: [PATCH] Fix build, re-publish @mysten/kms (#20125) ## Description Build will always treat `src` as the base for outputs when building. ## Test plan How did you test the new or updated feature? --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK: - [ ] REST API: --- .changeset/good-students-care.md | 5 +++++ sdk/build-scripts/src/utils/buildPackage.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/good-students-care.md diff --git a/.changeset/good-students-care.md b/.changeset/good-students-care.md new file mode 100644 index 0000000000000..dc9f129d712be --- /dev/null +++ b/.changeset/good-students-care.md @@ -0,0 +1,5 @@ +--- +'@mysten/kms': patch +--- + +Fix exports on the bundled package diff --git a/sdk/build-scripts/src/utils/buildPackage.ts b/sdk/build-scripts/src/utils/buildPackage.ts index fec294a1d1176..2e578dc729aa4 100755 --- a/sdk/build-scripts/src/utils/buildPackage.ts +++ b/sdk/build-scripts/src/utils/buildPackage.ts @@ -60,6 +60,7 @@ async function buildCJS( entryPoints, outdir: 'dist/cjs', sourcemap: true, + outbase: 'src', ...buildOptions, }); await buildTypes('tsconfig.json'); @@ -90,6 +91,7 @@ async function buildESM( target: 'es2020', entryPoints, outdir: 'dist/esm', + outbase: 'src', sourcemap: true, ...buildOptions,