@technicity/data-service-generator 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -117,7 +117,7 @@ async function generate(input) {
|
|
|
117
117
|
const sdkOutputPath = path.join(outdir, "sdk-ts");
|
|
118
118
|
const nccVersion = "^0.33.0";
|
|
119
119
|
child_process.execSync("npm i", { cwd: tmpDirPath, stdio: "inherit" });
|
|
120
|
-
child_process.execSync(`npx
|
|
120
|
+
child_process.execSync(`npm_config_yes=true npx -p @vercel/ncc@${nccVersion} ncc build ./${sdkFilename} -o ${tmpBuildOutputPath} -e ./artifacts`, { cwd: tmpDirPath, stdio: "inherit" });
|
|
121
121
|
// TODO: workaround for artifacts.js not being output by ncc
|
|
122
122
|
fs.writeFileSync(path.join(tmpBuildOutputPath, "artifacts.js"), artifactsSource
|
|
123
123
|
.replace("export const artifacts: IArtifacts = ", "module.exports.artifacts = ")
|