Skip to content

Commit 61c8b9a

Browse files
mpodwysockijeremymeng
authored andcommitted
[EngSys] Add update-snippets to all package.json files ***NO_CI***
1 parent 8b249ec commit 61c8b9a

401 files changed

Lines changed: 9550 additions & 9173 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

common/tools/dev-tool/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,24 @@
1313
"scripts": {
1414
"audit": "node ../../../common/scripts/rush-audit.js && rimraf --glob node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
1515
"build": "tsc",
16-
"build:test": "echo Skipped.",
1716
"build:samples": "echo Skipped.",
17+
"build:test": "echo Skipped.",
1818
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
1919
"clean": "rimraf --glob dist dist-* *.tgz *.log",
2020
"extract-api": "echo skipped",
2121
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
22+
"integration-test": "echo skipped",
2223
"integration-test:browser": "echo skipped",
2324
"integration-test:node": "echo skipped",
24-
"integration-test": "echo skipped",
25-
"lint:fix": "eslint src test --fix --fix-type [problem,suggestion]",
2625
"lint": "eslint src test",
26+
"lint:fix": "eslint src test --fix --fix-type [problem,suggestion]",
2727
"pack": "npm pack 2>&1",
2828
"prebuild": "npm run clean",
29+
"test": "echo Skipped.",
2930
"unit-test": "npm run unit-test:node",
30-
"unit-test:node": "vitest",
3131
"unit-test:browser": "echo skipped",
32-
"test": "echo Skipped."
32+
"unit-test:node": "vitest",
33+
"update-snippets": "echo skipped"
3334
},
3435
"repository": "github:Azure/azure-sdk-for-js",
3536
"author": "Microsoft Corporation",
@@ -42,18 +43,18 @@
4243
"private": true,
4344
"prettier": "../eslint-plugin-azure-sdk/prettier.json",
4445
"dependencies": {
45-
"@_ts/min": "npm:typescript@~4.2.4",
4646
"@_ts/max": "npm:typescript@latest",
47+
"@_ts/min": "npm:typescript@~4.2.4",
4748
"@azure/identity": "^4.4.1",
4849
"@microsoft/api-extractor": "^7.42.3",
4950
"@microsoft/api-extractor-model": "^7.29.8",
5051
"@rollup/plugin-commonjs": "^25.0.7",
52+
"@rollup/plugin-inject": "^5.0.5",
5153
"@rollup/plugin-json": "^6.0.1",
5254
"@rollup/plugin-multi-entry": "^6.0.1",
5355
"@rollup/plugin-node-resolve": "^15.2.3",
54-
"@rollup/plugin-inject": "^5.0.5",
55-
"concurrently": "^8.2.2",
5656
"chalk": "^4.1.1",
57+
"concurrently": "^8.2.2",
5758
"decompress": "^4.2.1",
5859
"dotenv": "^16.0.0",
5960
"env-paths": "^2.2.1",

common/tools/eslint-plugin-azure-sdk/package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,21 @@
4141
"build": "tsc -p tsconfig.build.json",
4242
"build:samples": "echo Skipped.",
4343
"build:test": "echo Skipped.",
44+
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"./**/*.{ts,json,md}\"",
4445
"clean": "rimraf --glob dist* types",
4546
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"./**/*.{ts,json,md}\"",
46-
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"./**/*.{ts,json,md}\"",
47+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
48+
"integration-test:browser": "echo skipped",
49+
"integration-test:node": "echo skipped",
4750
"lint": "eslint src tests/rules",
4851
"lint:fix": "eslint src tests/rules --fix --fix-type [problem,suggestion]",
4952
"pack": "npm pack 2>&1",
5053
"prebuild": "npm run clean",
51-
"integration-test:browser": "echo skipped",
52-
"integration-test:node": "echo skipped",
53-
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
54-
"unit-test:node": "vitest",
55-
"unit-test:browser": "echo skipped",
54+
"test": "npm run clean && npm run build:test && npm run unit-test",
5655
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
57-
"test": "npm run clean && npm run build:test && npm run unit-test"
56+
"unit-test:browser": "echo skipped",
57+
"unit-test:node": "vitest",
58+
"update-snippets": "echo skipped"
5859
},
5960
"engines": {
6061
"node": ">=18.0.0"
@@ -74,31 +75,31 @@
7475
"dependencies": {
7576
"@eslint/compat": "^1.0.1",
7677
"@eslint/js": "^9.9.0",
77-
"@typescript-eslint/typescript-estree": "~8.2.0",
7878
"@types/eslint": "^9.6.0",
7979
"@types/estree": "~1.0.0",
80+
"@typescript-eslint/typescript-estree": "~8.2.0",
8081
"eslint-config-prettier": "^9.0.0",
8182
"glob": "^10.3.10",
82-
"typescript-eslint": "~8.2.0",
83+
"tslib": "^2.6.2",
8384
"typescript": "~5.6.2",
84-
"tslib": "^2.6.2"
85+
"typescript-eslint": "~8.2.0"
8586
},
8687
"devDependencies": {
88+
"@types/eslint": "^9.6.0",
8789
"@types/eslint__js": "8.42.3",
8890
"@types/eslint-config-prettier": "6.11.3",
8991
"@types/node": "^18.0.0",
9092
"@typescript-eslint/eslint-plugin": "~8.2.0",
91-
"@typescript-eslint/utils": "~8.2.0",
9293
"@typescript-eslint/parser": "~8.2.0",
9394
"@typescript-eslint/rule-tester": "~8.2.0",
95+
"@typescript-eslint/utils": "~8.2.0",
9496
"@vitest/coverage-istanbul": "^1.4.0",
9597
"cross-env": "^7.0.3",
9698
"eslint": "^9.9.0",
9799
"eslint-plugin-markdown": "^5.0.0",
98100
"prettier": "^3.3.3",
99101
"rimraf": "^5.0.5",
100102
"source-map-support": "^0.5.9",
101-
"vitest": "^1.4.0",
102-
"@types/eslint": "^9.6.0"
103+
"vitest": "^1.4.0"
103104
}
104105
}

common/tools/vite-plugin-browser-test-map/package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,21 @@
2929
"build": "tsc -p .",
3030
"build:samples": "echo Skipped.",
3131
"build:test": "tsc -p .",
32+
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"./**/*.{ts,json,md}\"",
3233
"clean": "rimraf --glob dist/",
3334
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"./**/*.{ts,json,md}\"",
34-
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"./**/*.{ts,json,md}\"",
35+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
36+
"integration-test:browser": "echo skipped",
37+
"integration-test:node": "echo skipped",
3538
"lint": "eslint src",
3639
"lint:fix": "eslint src --fix --fix-type [problem,suggestion]",
3740
"pack": "npm pack 2>&1",
3841
"prebuild": "npm run clean",
39-
"integration-test:browser": "echo skipped",
40-
"integration-test:node": "echo skipped",
41-
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
42-
"unit-test:node": "echo skipped",
43-
"unit-test:browser": "echo skipped",
42+
"test": "npm run clean && npm run build:test && npm run unit-test",
4443
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
45-
"test": "npm run clean && npm run build:test && npm run unit-test"
44+
"unit-test:browser": "echo skipped",
45+
"unit-test:node": "echo skipped",
46+
"update-snippets": "echo skipped"
4647
},
4748
"engines": {
4849
"node": ">=18.0.0"
@@ -56,7 +57,7 @@
5657
"eslint": "^9.9.0",
5758
"prettier": "^3.3.3",
5859
"rimraf": "^5.0.0",
59-
"typescript-eslint": "~8.2.0",
60-
"typescript": "~5.6.2"
60+
"typescript": "~5.6.2",
61+
"typescript-eslint": "~8.2.0"
6162
}
6263
}

sdk/advisor/arm-advisor/package.json

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"node": ">=18.0.0"
99
},
1010
"dependencies": {
11-
"@azure/core-paging": "^1.2.0",
12-
"@azure/core-client": "^1.7.0",
1311
"@azure/core-auth": "^1.3.0",
12+
"@azure/core-client": "^1.7.0",
13+
"@azure/core-paging": "^1.2.0",
1414
"@azure/core-rest-pipeline": "^1.8.0",
1515
"tslib": "^2.2.0"
1616
},
@@ -26,23 +26,23 @@
2626
"module": "./dist-esm/src/index.js",
2727
"types": "./types/arm-advisor.d.ts",
2828
"devDependencies": {
29-
"@microsoft/api-extractor": "^7.31.1",
30-
"mkdirp": "^3.0.1",
31-
"typescript": "~5.6.2",
32-
"uglify-js": "^3.4.9",
33-
"rimraf": "^5.0.5",
34-
"dotenv": "^16.0.0",
35-
"@azure/identity": "^4.0.1",
36-
"@azure-tools/test-recorder": "^3.0.0",
3729
"@azure-tools/test-credential": "^1.0.0",
38-
"mocha": "^10.0.0",
30+
"@azure-tools/test-recorder": "^3.0.0",
31+
"@azure/dev-tool": "^1.0.0",
32+
"@azure/identity": "^4.0.1",
33+
"@microsoft/api-extractor": "^7.31.1",
3934
"@types/chai": "^4.2.8",
35+
"@types/mocha": "^10.0.0",
36+
"@types/node": "^18.0.0",
4037
"chai": "^4.2.0",
4138
"cross-env": "^7.0.2",
42-
"@types/node": "^18.0.0",
43-
"@azure/dev-tool": "^1.0.0",
39+
"dotenv": "^16.0.0",
40+
"mkdirp": "^3.0.1",
41+
"mocha": "^10.0.0",
42+
"rimraf": "^5.0.5",
4443
"ts-node": "^10.0.0",
45-
"@types/mocha": "^10.0.0"
44+
"typescript": "~5.6.2",
45+
"uglify-js": "^3.4.9"
4646
},
4747
"repository": {
4848
"type": "git",
@@ -69,30 +69,31 @@
6969
"types/*"
7070
],
7171
"scripts": {
72-
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api",
73-
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
74-
"prepack": "npm run build",
75-
"pack": "npm pack 2>&1",
76-
"extract-api": "dev-tool run extract-api",
77-
"lint": "echo skipped",
7872
"audit": "echo skipped",
79-
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
80-
"build:node": "echo skipped",
73+
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api",
8174
"build:browser": "echo skipped",
82-
"build:test": "echo skipped",
75+
"build:node": "echo skipped",
8376
"build:samples": "echo skipped.",
77+
"build:test": "echo skipped",
8478
"check-format": "echo skipped",
79+
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
8580
"execute:samples": "echo skipped",
81+
"extract-api": "dev-tool run extract-api",
8682
"format": "echo skipped",
83+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
84+
"integration-test:browser": "echo skipped",
85+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
86+
"lint": "echo skipped",
87+
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
88+
"pack": "npm pack 2>&1",
89+
"prepack": "npm run build",
8790
"test": "npm run integration-test",
88-
"test:node": "echo skipped",
8991
"test:browser": "echo skipped",
92+
"test:node": "echo skipped",
9093
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
91-
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
9294
"unit-test:browser": "echo skipped",
93-
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
94-
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
95-
"integration-test:browser": "echo skipped"
95+
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
96+
"update-snippets": "echo skipped"
9697
},
9798
"sideEffects": false,
9899
"//metadata": {
@@ -113,4 +114,4 @@
113114
"disableDocsMs": true,
114115
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-advisor?view=azure-node-preview"
115116
}
116-
}
117+
}

sdk/agrifood/agrifood-farming-rest/package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,50 +54,51 @@
5454
},
5555
"scripts": {
5656
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
57+
"build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api",
5758
"build:browser": "tsc -p . && dev-tool run bundle",
59+
"build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api",
5860
"build:node": "tsc -p . && dev-tool run bundle",
5961
"build:samples": "echo Obsolete.",
6062
"build:test": "tsc -p . && dev-tool run bundle",
61-
"build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api",
62-
"build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api",
6363
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
6464
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
6565
"execute:samples": "dev-tool samples run samples-dev",
6666
"extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api",
6767
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
6868
"generate:client": "autorest --typescript swagger/README.md && npm run format",
69+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
6970
"integration-test:browser": "karma start --single-run",
7071
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/{,!(browser)/**/}*.spec.js\"",
71-
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
72-
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
7372
"lint": "eslint package.json api-extractor.json src test",
73+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
7474
"pack": "npm pack 2>&1",
75+
"test": "npm run clean && npm run build:test && npm run unit-test",
7576
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
7677
"test:node": "npm run clean && npm run build:test && npm run unit-test:node",
77-
"test": "npm run clean && npm run build:test && npm run unit-test",
78+
"unit-test": "cross-env TEST_MODE=playback && npm run unit-test:node && npm run unit-test:browser",
7879
"unit-test:browser": "dev-tool run test:browser",
7980
"unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'",
80-
"unit-test": "cross-env TEST_MODE=playback && npm run unit-test:node && npm run unit-test:browser"
81+
"update-snippets": "echo skipped"
8182
},
8283
"sideEffects": false,
8384
"autoPublish": false,
8485
"dependencies": {
85-
"@azure/core-rest-pipeline": "^1.9.2",
8686
"@azure-rest/core-client": "^1.0.0",
8787
"@azure/core-auth": "^1.3.0",
8888
"@azure/core-lro": "^2.2.4",
8989
"@azure/core-paging": "^1.2.0",
90+
"@azure/core-rest-pipeline": "^1.9.2",
9091
"@azure/logger": "^1.0.0",
9192
"tslib": "^2.2.0"
9293
},
9394
"devDependencies": {
95+
"@azure-tools/test-credential": "^1.0.0",
96+
"@azure-tools/test-recorder": "^3.0.0",
97+
"@azure-tools/test-utils": "^1.0.1",
9498
"@azure/core-util": "^1.0.0",
9599
"@azure/dev-tool": "^1.0.0",
96100
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
97101
"@azure/identity": "^4.0.1",
98-
"@azure-tools/test-utils": "^1.0.1",
99-
"@azure-tools/test-credential": "^1.0.0",
100-
"@azure-tools/test-recorder": "^3.0.0",
101102
"@microsoft/api-extractor": "^7.31.1",
102103
"@types/chai": "^4.1.6",
103104
"@types/mocha": "^10.0.0",
@@ -106,24 +107,24 @@
106107
"cross-env": "^7.0.2",
107108
"dotenv": "^16.0.0",
108109
"eslint": "^9.9.0",
110+
"karma": "^6.2.0",
109111
"karma-chrome-launcher": "^3.0.0",
110112
"karma-coverage": "^2.0.0",
111113
"karma-env-preprocessor": "^0.1.1",
112114
"karma-firefox-launcher": "^1.1.0",
113115
"karma-json-preprocessor": "^0.3.3",
114116
"karma-json-to-file-reporter": "^1.0.1",
115117
"karma-junit-reporter": "^2.0.1",
116-
"karma-mocha-reporter": "^2.2.5",
117118
"karma-mocha": "^2.0.1",
119+
"karma-mocha-reporter": "^2.2.5",
118120
"karma-source-map-support": "~1.4.0",
119121
"karma-sourcemap-loader": "^0.3.8",
120-
"karma": "^6.2.0",
121122
"mkdirp": "^3.0.1",
122123
"mocha": "^10.0.0",
123124
"nyc": "^17.0.0",
124125
"rimraf": "^5.0.5",
125126
"source-map-support": "^0.5.9",
126-
"typescript": "~5.6.2",
127-
"ts-node": "^10.0.0"
127+
"ts-node": "^10.0.0",
128+
"typescript": "~5.6.2"
128129
}
129130
}

0 commit comments

Comments
 (0)