Skip to content

Commit

Permalink
fix build (#238530)
Browse files Browse the repository at this point in the history
* fix build

* fix build

* one more fix
  • Loading branch information
joaomoreno authored Jan 23, 2025
1 parent 26bd8a0 commit ce2c2f3
Show file tree
Hide file tree
Showing 14 changed files with 81 additions and 246 deletions.
37 changes: 2 additions & 35 deletions build/azure-pipelines/common/publish.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/azure-pipelines/common/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import os from 'os';
import { Worker, isMainThread, workerData } from 'node:worker_threads';
import { ConfidentialClientApplication } from '@azure/msal-node';
import { BlobClient, BlobServiceClient, BlockBlobClient, ContainerClient } from '@azure/storage-blob';
import * as jws from 'jws';
import jws from 'jws';
import { clearInterval, setInterval } from 'node:timers';

function e(name: string): string {
Expand Down
53 changes: 10 additions & 43 deletions build/azure-pipelines/upload-cdn.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions build/azure-pipelines/upload-cdn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import * as es from 'event-stream';
import es from 'event-stream';
import Vinyl from 'vinyl';
import * as vfs from 'vinyl-fs';
import vfs from 'vinyl-fs';
import filter from 'gulp-filter';
import gzip from 'gulp-gzip';
import * as mime from 'mime';
import mime from 'mime';
import { ClientAssertionCredential } from '@azure/identity';
const azure = require('gulp-azure-storage');

Expand Down
51 changes: 9 additions & 42 deletions build/azure-pipelines/upload-nlsmetadata.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions build/azure-pipelines/upload-nlsmetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import * as es from 'event-stream';
import * as Vinyl from 'vinyl';
import * as vfs from 'vinyl-fs';
import es from 'event-stream';
import Vinyl from 'vinyl';
import vfs from 'vinyl-fs';
import merge from 'gulp-merge-json';
import gzip from 'gulp-gzip';
import { ClientAssertionCredential } from '@azure/identity';
Expand Down
6 changes: 3 additions & 3 deletions build/azure-pipelines/upload-sourcemaps.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/azure-pipelines/upload-sourcemaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Vinyl from 'vinyl';
import vfs from 'vinyl-fs';
import * as util from '../lib/util';
// @ts-ignore
import * as deps from '../lib/dependencies';
import deps from '../lib/dependencies';
import { ClientAssertionCredential } from '@azure/identity';
const azure = require('gulp-azure-storage');

Expand Down Expand Up @@ -37,7 +37,7 @@ function main(): Promise<void> {
sources.push(vs);

const productionDependencies = deps.getProductionDependencies(root);
const productionDependenciesSrc = productionDependencies.map(d => path.relative(root, d)).map(d => `./${d}/**/*.map`);
const productionDependenciesSrc = productionDependencies.map((d: string) => path.relative(root, d)).map((d: string) => `./${d}/**/*.map`);
const nodeModules = vfs.src(productionDependenciesSrc, { base: '.' })
.pipe(util.cleanNodeModules(path.join(root, 'build', '.moduleignore')))
.pipe(util.cleanNodeModules(path.join(root, 'build', `.moduleignore.${process.platform}`)));
Expand Down
37 changes: 2 additions & 35 deletions build/darwin/verify-macho.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/darwin/verify-macho.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/

import assert from 'assert';
import * as path from 'path';
import path from 'path';
import { open, stat, readdir, realpath } from 'fs/promises';
import { spawn, ExitCodeError } from '@malept/cross-spawn-promise';

Expand Down
Loading

0 comments on commit ce2c2f3

Please sign in to comment.