Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Initial check-in for supporting telemetry in vscode #6123

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add more log to verify the script
  • Loading branch information
RodgeFu committed Feb 27, 2025
commit 507d81b82350b71b11634a7a7868ca1472365753
5 changes: 3 additions & 2 deletions packages/typespec-vscode/scripts/update-telemetry-key.js
Original file line number Diff line number Diff line change
@@ -22,9 +22,10 @@ if (!newKey) {
);
packageJson.telemetryKey = newKey;

console.log(`package.json updated to: \n` + JSON.stringify(packageJson, null, 2));

fs.writeFileSync(targetPackageJsonFile, JSON.stringify(packageJson, null, 2));

const newPackageJsonString = fs.readFileSync(targetPackageJsonFile, "utf8");
console.log(`package.json updated to: \n` + JSON.stringify(newPackageJsonString, null, 2));

console.log("package.json updated successfully");
}
Loading
Oops, something went wrong.