create-mantle-facilitator 0.4.1 → 0.4.3
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/index.mjs +4 -6
- package/package.json +1 -1
- package/template/package.json +3 -0
package/dist/index.mjs
CHANGED
|
@@ -123,16 +123,14 @@ function generateEnvFile(answers) {
|
|
|
123
123
|
`LOG_LEVEL=info`,
|
|
124
124
|
``
|
|
125
125
|
];
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
env.push(`# Telemetry (Optional - for analytics)`);
|
|
127
|
+
if (answers.telemetryKey) {
|
|
128
128
|
env.push(`TELEMETRY_PROJECT_KEY=${answers.telemetryKey}`);
|
|
129
|
-
|
|
130
|
-
} else if (answers.enableTelemetry) {
|
|
131
|
-
env.push(`# Telemetry (Optional - for analytics)`);
|
|
129
|
+
} else {
|
|
132
130
|
env.push(`# TELEMETRY_PROJECT_KEY=your_project_key_here`);
|
|
133
131
|
env.push(`# Get your key from https://x402mantlesdk.xyz/dashboard`);
|
|
134
|
-
env.push(``);
|
|
135
132
|
}
|
|
133
|
+
env.push(``);
|
|
136
134
|
return env.join("\n");
|
|
137
135
|
}
|
|
138
136
|
async function createProjectInteractive() {
|
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "Self-hosted x402 facilitator template for Mantle + USDC (TypeScript)",
|
|
7
7
|
"license": "MIT",
|
|
8
|
+
"overrides": {
|
|
9
|
+
"qs": "^6.14.1"
|
|
10
|
+
},
|
|
8
11
|
"scripts": {
|
|
9
12
|
"dev": "tsx src/index.ts",
|
|
10
13
|
"build": "tsup src/index.ts --format esm --dts false",
|