@azure/arm-datamigration 3.0.0-alpha.20231002.1 → 3.0.0-alpha.20231017.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -3,9 +3,9 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for DataMigrationManagementClient.",
6
- "version": "3.0.0-alpha.20231002.1",
6
+ "version": "3.0.0-alpha.20231017.1",
7
7
  "engines": {
8
- "node": ">=14.0.0"
8
+ "node": ">=16.0.0"
9
9
  },
10
10
  "dependencies": {
11
11
  "@azure/core-lro": "^2.2.0",
@@ -29,13 +29,7 @@
29
29
  "types": "./types/arm-datamigration.d.ts",
30
30
  "devDependencies": {
31
31
  "@microsoft/api-extractor": "^7.31.1",
32
- "@rollup/plugin-commonjs": "^24.0.0",
33
- "@rollup/plugin-json": "^6.0.0",
34
- "@rollup/plugin-multi-entry": "^6.0.0",
35
- "@rollup/plugin-node-resolve": "^13.1.3",
36
32
  "mkdirp": "^1.0.4",
37
- "rollup": "^2.66.1",
38
- "rollup-plugin-sourcemaps": "^0.6.3",
39
33
  "typescript": "~5.0.0",
40
34
  "uglify-js": "^3.4.9",
41
35
  "rimraf": "^3.0.0",
@@ -46,7 +40,7 @@
46
40
  "@types/chai": "^4.2.8",
47
41
  "chai": "^4.2.0",
48
42
  "cross-env": "^7.0.2",
49
- "@types/node": "^14.0.0",
43
+ "@types/node": "^16.0.0",
50
44
  "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
51
45
  "ts-node": "^10.0.0"
52
46
  },
@@ -70,14 +64,13 @@
70
64
  "src/**/*.ts",
71
65
  "README.md",
72
66
  "LICENSE",
73
- "rollup.config.js",
74
67
  "tsconfig.json",
75
68
  "review/*",
76
69
  "CHANGELOG.md",
77
70
  "types/*"
78
71
  ],
79
72
  "scripts": {
80
- "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
73
+ "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api",
81
74
  "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
82
75
  "prepack": "npm run build",
83
76
  "pack": "npm pack 2>&1",
package/rollup.config.js DELETED
@@ -1,122 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import nodeResolve from "@rollup/plugin-node-resolve";
10
- import cjs from "@rollup/plugin-commonjs";
11
- import sourcemaps from "rollup-plugin-sourcemaps";
12
- import multiEntry from "@rollup/plugin-multi-entry";
13
- import json from "@rollup/plugin-json";
14
-
15
- import nodeBuiltins from "builtin-modules";
16
-
17
- // #region Warning Handler
18
-
19
- /**
20
- * A function that can determine whether a rollup warning should be ignored. If
21
- * the function returns `true`, then the warning will not be displayed.
22
- */
23
-
24
- function ignoreNiseSinonEval(warning) {
25
- return (
26
- warning.code === "EVAL" &&
27
- warning.id &&
28
- (warning.id.includes("node_modules/nise") ||
29
- warning.id.includes("node_modules/sinon")) === true
30
- );
31
- }
32
-
33
- function ignoreChaiCircularDependency(warning) {
34
- return (
35
- warning.code === "CIRCULAR_DEPENDENCY" &&
36
- warning.importer && warning.importer.includes("node_modules/chai") === true
37
- );
38
- }
39
-
40
- const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
41
-
42
- /**
43
- * Construct a warning handler for the shared rollup configuration
44
- * that ignores certain warnings that are not relevant to testing.
45
- */
46
- function makeOnWarnForTesting() {
47
- return (warning, warn) => {
48
- // If every inhibitor returns false (i.e. no inhibitors), then show the warning
49
- if (warningInhibitors.every((inhib) => !inhib(warning))) {
50
- warn(warning);
51
- }
52
- };
53
- }
54
-
55
- // #endregion
56
-
57
- function makeBrowserTestConfig() {
58
- const config = {
59
- input: {
60
- include: ["dist-esm/test/**/*.spec.js"],
61
- exclude: ["dist-esm/test/**/node/**"]
62
- },
63
- output: {
64
- file: `dist-test/index.browser.js`,
65
- format: "umd",
66
- sourcemap: true
67
- },
68
- preserveSymlinks: false,
69
- plugins: [
70
- multiEntry({ exports: false }),
71
- nodeResolve({
72
- mainFields: ["module", "browser"]
73
- }),
74
- cjs(),
75
- json(),
76
- sourcemaps()
77
- //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
78
- ],
79
- onwarn: makeOnWarnForTesting(),
80
- // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
81
- // rollup started respecting the "sideEffects" field in package.json. Since
82
- // our package.json sets "sideEffects=false", this also applies to test
83
- // code, which causes all tests to be removed by tree-shaking.
84
- treeshake: false
85
- };
86
-
87
- return config;
88
- }
89
-
90
- const defaultConfigurationOptions = {
91
- disableBrowserBundle: false
92
- };
93
-
94
- export function makeConfig(pkg, options) {
95
- options = {
96
- ...defaultConfigurationOptions,
97
- ...(options || {})
98
- };
99
-
100
- const baseConfig = {
101
- // Use the package's module field if it has one
102
- input: pkg["module"] || "dist-esm/src/index.js",
103
- external: [
104
- ...nodeBuiltins,
105
- ...Object.keys(pkg.dependencies),
106
- ...Object.keys(pkg.devDependencies)
107
- ],
108
- output: { file: "dist/index.js", format: "cjs", sourcemap: true },
109
- preserveSymlinks: false,
110
- plugins: [sourcemaps(), nodeResolve()]
111
- };
112
-
113
- const config = [baseConfig];
114
-
115
- if (!options.disableBrowserBundle) {
116
- config.push(makeBrowserTestConfig());
117
- }
118
-
119
- return config;
120
- }
121
-
122
- export default makeConfig(require("./package.json"));