Skip to content

Commit c8495f5

Browse files
authored
change script to ts (#3577)
1 parent 960093d commit c8495f5

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,20 @@
6767
"@changesets/cli": "2.9.2",
6868
"@microsoft/api-documenter": "7.8.21",
6969
"@microsoft/api-extractor": "7.9.2",
70+
"@types/mz": "2.7.1",
7071
"@types/chai": "4.2.12",
7172
"@types/chai-as-promised": "7.1.3",
7273
"@types/child-process-promise": "2.2.1",
7374
"@types/clone": "0.1.30",
7475
"@types/inquirer": "7.3.0",
76+
"@types/listr": "0.14.2",
7577
"@types/long": "4.0.1",
7678
"@types/mocha": "7.0.2",
7779
"@types/node": "12.12.53",
7880
"@types/sinon": "9.0.4",
7981
"@types/sinon-chai": "3.2.4",
8082
"@types/tmp": "0.2.0",
8183
"@types/yargs": "15.0.5",
82-
"@types/listr": "0.14.2",
8384
"@typescript-eslint/eslint-plugin": "2.34.0",
8485
"@typescript-eslint/eslint-plugin-tslint": "2.34.0",
8586
"@typescript-eslint/parser": "2.34.0",
@@ -112,11 +113,11 @@
112113
"karma-coverage-istanbul-reporter": "2.1.1",
113114
"karma-firefox-launcher": "1.3.0",
114115
"karma-mocha": "2.0.1",
116+
"karma-mocha-reporter": "2.2.5",
115117
"karma-safari-launcher": "1.0.0",
116118
"karma-sauce-launcher": "1.2.0",
117119
"karma-sourcemap-loader": "0.3.7",
118120
"karma-spec-reporter": "0.0.32",
119-
"karma-mocha-reporter": "2.2.5",
120121
"karma-summary-reporter": "1.8.0",
121122
"karma-webpack": "4.0.2",
122123
"lcov-result-merger": "3.1.0",

scripts/exp/update-internal-dep-versions.js renamed to scripts/exp/update-internal-dep-versions.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@
2525
* Example: node scripts/exp/update-internal-dep-versions.js --file packages-exp/functions-exp/package.json
2626
*/
2727

28-
const { projectRoot } = require('../utils');
29-
const { mapPkgNameToPkgJson } = require('../release/utils/workspace');
30-
const { argv } = require('yargs');
31-
const fs = require('mz/fs');
32-
async function updateField(pkg, fieldName) {
28+
import { projectRoot } from '../utils';
29+
import { mapPkgNameToPkgJson } from '../release/utils/workspace';
30+
import { argv } from 'yargs';
31+
import fs from 'mz/fs';
32+
33+
async function updateField(pkg: any, fieldName: string) {
3334
const field = pkg[fieldName];
3435
for (const depName in field) {
3536
if (!depName.includes('@firebase') && depName !== 'firebase') continue;

yarn.lock

+7
Original file line numberDiff line numberDiff line change
@@ -2590,6 +2590,13 @@
25902590
resolved "https://registry.npmjs.org/@types/mocha/-/mocha-7.0.2.tgz#b17f16cf933597e10d6d78eae3251e692ce8b0ce"
25912591
integrity sha512-ZvO2tAcjmMi8V/5Z3JsyofMe3hasRcaw88cto5etSVMwVQfeivGAlEYmaQgceUSVYFofVjT+ioHsATjdWcFt1w==
25922592

2593+
2594+
version "2.7.1"
2595+
resolved "https://registry.npmjs.org/@types/mz/-/mz-2.7.1.tgz#1ac1d69b039c8b3cbe603972b5c12d3167a84f58"
2596+
integrity sha512-H86h7KmRDVs9UeSiQvtUeVhS+WYpJSYSsZrRvNYpGWGiytEqxwEtvgRnINESQtCgnojIH2wS2WgaMTJP0firBw==
2597+
dependencies:
2598+
"@types/node" "*"
2599+
25932600
25942601
version "2.5.7"
25952602
resolved "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.5.7.tgz#20a2afffa882ab04d44ca786449a276f9f6bbf3c"

0 commit comments

Comments
 (0)