@stacks/rendezvous 0.13.0 → 0.13.1
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.
- package/dist/citizen.js +9 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/citizen.js
CHANGED
|
@@ -47,7 +47,9 @@ const issueFirstClassCitizenship = (manifestDir, manifestPath, sutContractName,
|
|
|
47
47
|
catch (error) {
|
|
48
48
|
throw new Error(`Error initializing simnet: ${(_a = error.message) !== null && _a !== void 0 ? _a : error}`);
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const deploymentPlanRelativePath = (0, path_1.relative)(manifestDir, (0, path_1.join)(manifestDir, "deployments", "default.simnet-plan.yaml"));
|
|
51
|
+
const deploymentPlanAbsolutePath = (0, path_1.join)(manifestDir, deploymentPlanRelativePath);
|
|
52
|
+
const deploymentPlan = yaml_1.default.parse((0, fs_1.readFileSync)(deploymentPlanAbsolutePath, {
|
|
51
53
|
encoding: "utf-8",
|
|
52
54
|
}));
|
|
53
55
|
const parsedManifest = (0, toml_1.parse)((0, fs_1.readFileSync)(manifestPath, { encoding: "utf-8" }));
|
|
@@ -101,6 +103,12 @@ const issueFirstClassCitizenship = (manifestDir, manifestPath, sutContractName,
|
|
|
101
103
|
// Errors are still printed to stderr to help troubleshoot issues.
|
|
102
104
|
const originalWrite = process.stdout.write;
|
|
103
105
|
process.stdout.write = () => true;
|
|
106
|
+
// Cleanup the deployment plan file if it exists. This will force clarinet
|
|
107
|
+
// to generate the deployment plan from scratch, accounting for the new
|
|
108
|
+
// Rendezvous contract.
|
|
109
|
+
if ((0, fs_1.existsSync)(deploymentPlanRelativePath)) {
|
|
110
|
+
(0, fs_1.rmSync)(deploymentPlanRelativePath, { force: true });
|
|
111
|
+
}
|
|
104
112
|
try {
|
|
105
113
|
const simnet = yield (0, clarinet_sdk_1.initSimnet)(manifestFileName);
|
|
106
114
|
return simnet;
|
package/dist/package.json
CHANGED