File tree Expand file tree Collapse file tree
packages/vscode-extension-ci/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 * repo root or https://opensource.org/licenses/BSD-3-Clause
77 */
88
9- import { appendFileSync , existsSync } from 'fs' ;
9+ import { appendFileSync , existsSync , mkdirSync } from 'fs' ;
1010import { join } from 'path' ;
1111
1212interface AuditLogEntry {
@@ -39,8 +39,7 @@ function getAuditLogPath(): string {
3939 // Ensure log directory exists
4040 if ( ! existsSync ( logDir ) ) {
4141 // Create directory if it doesn't exist
42- const fs = require ( 'fs' ) ;
43- fs . mkdirSync ( logDir , { recursive : true } ) ;
42+ mkdirSync ( logDir , { recursive : true } ) ;
4443 }
4544
4645 return logFile ;
Original file line number Diff line number Diff line change 66 * repo root or https://opensource.org/licenses/BSD-3-Clause
77 */
88
9- import { readFileSync , existsSync } from 'fs' ;
9+ import { readFileSync , existsSync , appendFileSync } from 'fs' ;
1010import { join } from 'path' ;
1111import { z } from 'zod' ;
1212import chalk from 'chalk' ;
13+ import { execSync } from 'child_process' ;
1314import type { SemanticVersion } from './types.js' ;
1415import semver from 'semver' ;
1516
@@ -123,8 +124,7 @@ export function parseEnvironment(): {
123124export function setOutput ( name : string , value : string ) : void {
124125 const githubOutput = process . env [ 'GITHUB_OUTPUT' ] ;
125126 if ( githubOutput ) {
126- const fs = require ( 'fs' ) ;
127- fs . appendFileSync ( githubOutput , `${ name } =${ value } \n` ) ;
127+ appendFileSync ( githubOutput , `${ name } =${ value } \n` ) ;
128128 } else {
129129 // Fallback for local development outside GitHub Actions
130130 console . log ( `[output] ${ name } =${ value } ` ) ;
Original file line number Diff line number Diff line change 88 */
99
1010import { log } from '../core/utils.js' ;
11- import { readdirSync , existsSync } from 'fs' ;
11+ import { readdirSync , existsSync , readFileSync } from 'fs' ;
1212import { join } from 'path' ;
1313
1414interface PublishMatrixEntry {
@@ -45,7 +45,7 @@ function getAvailableExtensions(): string[] {
4545 if ( existsSync ( packageJsonPath ) ) {
4646 try {
4747 const packageJson = JSON . parse (
48- require ( 'fs' ) . readFileSync ( packageJsonPath , 'utf-8' ) ,
48+ readFileSync ( packageJsonPath , 'utf-8' ) ,
4949 ) ;
5050
5151 // Only include packages that have a publisher (VS Code extensions)
You can’t perform that action at this time.
0 commit comments