Skip to content
Snippets Groups Projects
Unverified Commit 341882cf authored by Phoomparin Mano's avatar Phoomparin Mano Committed by GitHub
Browse files

Bump react-embedding-sdk version and copy README to output (#42020)


* bump react embedding sdk version to 0.1.0

* publish to metabase-embedding-sdk-react using version 0.1.1

* add commands to copy LICENSE and README files to output

* use the scoped metabase package

* rename file content variable

Co-authored-by: default avatarMahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev>

* update embedding sdk package description

* update content variable in script

Co-authored-by: default avatarMahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev>

---------

Co-authored-by: default avatarMahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev>
parent 868ccdf2
Branches
Tags
No related merge requests found
......@@ -67,15 +67,19 @@ function generateSdkPackage() {
);
}
function generateLicenseFile() {
const licenseContent = fs.readFileSync(
path.resolve(`./enterprise/LICENSE.txt`),
/**
* @param {string} source
* @param {string} target
*/
function copyFileToOutput(source, target = source) {
const fileContent = fs.readFileSync(
path.resolve(`./enterprise/${source}`),
"utf-8",
);
fs.writeFileSync(
path.resolve(path.join(SDK_DIST_DIR), "LICENSE.txt"),
licenseContent,
path.resolve(path.join(SDK_DIST_DIR), target),
fileContent,
"utf-8",
);
}
......@@ -85,4 +89,5 @@ if (!fs.existsSync(SDK_DIST_DIR)) {
}
generateSdkPackage();
generateLicenseFile();
copyFileToOutput("LICENSE.txt");
copyFileToOutput("frontend/src/embedding-sdk/README.md", "README.md");
{
"name": "@metabase/embedding-sdk-react",
"version": "0.0.3",
"description": "Metabase Embedding SDK",
"version": "0.1.0",
"description": "Metabase Embedding SDK for React",
"repository": {
"url": "git+https://github.com/metabase/metabase.git"
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment