@azure-tools/rlc-common
Advanced tools
Comparing version 0.33.0-alpha.20240923.1 to 0.33.0-alpha.20240924.1
@@ -17,3 +17,3 @@ { | ||
"packages/rlc-common/src/buildMethodShortcuts.ts": "833a2b2965d7b71d5a696b358498a9f9e68d83d1", | ||
"packages/rlc-common/src/buildObjectTypes.ts": "80e846c35f8678177218ca00bebb40c2780c83b7", | ||
"packages/rlc-common/src/buildObjectTypes.ts": "474359c964646dfd7a8a3fef5ff9b10efc11dbc8", | ||
"packages/rlc-common/src/buildPaginateHelper.ts": "c40461534e7072349be81f90f5f78f9ece813d53", | ||
@@ -24,3 +24,3 @@ "packages/rlc-common/src/buildParameterTypes.ts": "09048ac406388b84b5d455fe9a790ecc54c7afb7", | ||
"packages/rlc-common/src/buildSamples.ts": "65f2c54ec8837cf2485eeeec3adfc5164a89f674", | ||
"packages/rlc-common/src/buildSchemaType.ts": "fb8d5bf4e32acc52ecf7bbee2a09c68e5d4cb1b8", | ||
"packages/rlc-common/src/buildSchemaType.ts": "6a9346b578b24d2c9d95aee1b1591048c856f264", | ||
"packages/rlc-common/src/buildSerializeHelper.ts": "68b8b8eba1e8ac584262b6e3be4f79a706375d97", | ||
@@ -52,5 +52,5 @@ "packages/rlc-common/src/buildTopLevelIndexFile.ts": "8df2628afeb92ce3524f1717e7169fd9826a59f3", | ||
"packages/rlc-common/src/metadata/packageJson/buildAzureMonorepoPackage.ts": "9db097e6dfbae5d7f47ac69985d100ec557f3443", | ||
"packages/rlc-common/src/metadata/packageJson/buildAzureStandalonePackage.ts": "0c1842ed2dd176b813c6455a0f7e1ba24e117ed3", | ||
"packages/rlc-common/src/metadata/packageJson/buildFlavorlessPackage.ts": "6e6b9132d0332229147a39e5284be5c964f7bd74", | ||
"packages/rlc-common/src/metadata/packageJson/packageCommon.ts": "c987ecd00582d190cf25f39976090cac2a5227b0", | ||
"packages/rlc-common/src/metadata/packageJson/buildAzureStandalonePackage.ts": "f324e3615ed634f535e1d31262a0f62910c80168", | ||
"packages/rlc-common/src/metadata/packageJson/buildFlavorlessPackage.ts": "b73f3a331e00bbf5c4c9c4d62e852e748e060b45", | ||
"packages/rlc-common/src/metadata/packageJson/packageCommon.ts": "0078079c0683075f0dc40757dd430151551a7547", | ||
"packages/rlc-common/src/static/paginateContent.ts": "7662e30b3d45a8c812a20ea9e56bd57846b50ddc", | ||
@@ -69,3 +69,3 @@ "packages/rlc-common/src/static/pollingContent.ts": "e258455ebf140e9e11bf567771ac373de9ec8f76", | ||
"packages/rlc-common/test/integration/mockHelper.ts": "5c7f57aaaea34fb206bd37571491fb56ac80613b", | ||
"packages/rlc-common/test/integration/packageJson.spec.ts": "7f55ed8bef31470ea3b1f034ab9abd0565b089ae", | ||
"packages/rlc-common/test/integration/packageJson.spec.ts": "f8930a208e3fde1f9697d91e8fdc0ff4045735f9", | ||
"packages/rlc-common/test/integration/static/package.json": "09d24ae57d9e1d9ff74e057c0caa90a22ffe147a", | ||
@@ -72,0 +72,0 @@ "packages/rlc-common/test/integration/vitestConfig.spec.ts": "ec157c5cdbcd50f8e3864c069c9447ab85034e1e", |
@@ -108,5 +108,2 @@ // Copyright (c) Microsoft Corporation. | ||
}); | ||
if (objectSchema.alias?.startsWith("Paged<")) { | ||
importedModels.add("Paged"); | ||
} | ||
} | ||
@@ -113,0 +110,0 @@ } |
@@ -40,11 +40,2 @@ // Copyright (c) Microsoft Corporation. | ||
modelsFile.addTypeAliases(objectAliases); | ||
if (importedModels.has("Paged")) { | ||
modelsFile.addImportDeclarations([ | ||
{ | ||
namedImports: ["Paged"], | ||
moduleSpecifier: "@azure/core-paging" | ||
} | ||
]); | ||
importedModels.delete("Paged"); | ||
} | ||
if (importedModels.size > 0) { | ||
@@ -51,0 +42,0 @@ modelsFile.addImportDeclarations([ |
@@ -59,5 +59,3 @@ // Copyright (c) Microsoft Corporation. | ||
...getCommonPackageScripts(config), | ||
"check-format": 'prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore "src/**/*.ts" "*.{js,json}" "test/**/*.ts" "samples-dev/**/*.ts"', | ||
clean: "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", | ||
format: 'prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore "src/**/*.ts" "*.{js,json}" "test/**/*.ts" "samples-dev/**/*.ts"', | ||
...(config.withTests && testScripts), | ||
@@ -64,0 +62,0 @@ ...getCjsScripts(config), |
@@ -28,3 +28,2 @@ // Copyright (c) Microsoft Corporation. | ||
...getCommonPackageScripts(config), | ||
"check-format": 'prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore "src/**/*.ts" "*.{js,json}" ', | ||
...getCjsScripts(config), | ||
@@ -31,0 +30,0 @@ ...getEsmScripts(config) |
@@ -28,3 +28,2 @@ // Copyright (c) Microsoft Corporation. | ||
eslint: "^8.55.0", | ||
prettier: "^3.2.5", | ||
rimraf: "^5.0.5", | ||
@@ -31,0 +30,0 @@ mkdirp: "^3.0.1", |
@@ -87,3 +87,3 @@ "use strict"; | ||
function buildObjectAliases(model, importedModels, schemaUsage) { | ||
var _a, _b, _c, _d; | ||
var _a, _b, _c; | ||
const objectSchemas = ((_a = model.schemas) !== null && _a !== void 0 ? _a : []).filter((o) => { | ||
@@ -125,5 +125,2 @@ var _a; | ||
}); | ||
if ((_d = objectSchema.alias) === null || _d === void 0 ? void 0 : _d.startsWith("Paged<")) { | ||
importedModels.add("Paged"); | ||
} | ||
} | ||
@@ -130,0 +127,0 @@ } |
@@ -44,11 +44,2 @@ "use strict"; | ||
modelsFile.addTypeAliases(objectAliases); | ||
if (importedModels.has("Paged")) { | ||
modelsFile.addImportDeclarations([ | ||
{ | ||
namedImports: ["Paged"], | ||
moduleSpecifier: "@azure/core-paging" | ||
} | ||
]); | ||
importedModels.delete("Paged"); | ||
} | ||
if (importedModels.size > 0) { | ||
@@ -55,0 +46,0 @@ modelsFile.addImportDeclarations([ |
@@ -62,5 +62,3 @@ "use strict"; | ||
...(0, packageCommon_js_1.getCommonPackageScripts)(config), | ||
"check-format": 'prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore "src/**/*.ts" "*.{js,json}" "test/**/*.ts" "samples-dev/**/*.ts"', | ||
clean: "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", | ||
format: 'prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore "src/**/*.ts" "*.{js,json}" "test/**/*.ts" "samples-dev/**/*.ts"', | ||
...(config.withTests && testScripts), | ||
@@ -67,0 +65,0 @@ ...getCjsScripts(config), |
@@ -31,3 +31,2 @@ "use strict"; | ||
...(0, packageCommon_js_1.getCommonPackageScripts)(config), | ||
"check-format": 'prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore "src/**/*.ts" "*.{js,json}" ', | ||
...getCjsScripts(config), | ||
@@ -34,0 +33,0 @@ ...getEsmScripts(config) |
@@ -35,3 +35,2 @@ "use strict"; | ||
eslint: "^8.55.0", | ||
prettier: "^3.2.5", | ||
rimraf: "^5.0.5", | ||
@@ -38,0 +37,0 @@ mkdirp: "^3.0.1", |
{ | ||
"name": "@azure-tools/rlc-common", | ||
"version": "0.33.0-alpha.20240923.1", | ||
"version": "0.33.0-alpha.20240924.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -190,5 +190,2 @@ // Copyright (c) Microsoft Corporation. | ||
}); | ||
if (objectSchema.alias?.startsWith("Paged<")) { | ||
importedModels.add("Paged"); | ||
} | ||
} | ||
@@ -195,0 +192,0 @@ } |
@@ -66,11 +66,2 @@ // Copyright (c) Microsoft Corporation. | ||
modelsFile.addTypeAliases(objectAliases); | ||
if (importedModels.has("Paged")) { | ||
modelsFile.addImportDeclarations([ | ||
{ | ||
namedImports: ["Paged"], | ||
moduleSpecifier: "@azure/core-paging" | ||
} | ||
]); | ||
importedModels.delete("Paged"); | ||
} | ||
if (importedModels.size > 0) { | ||
@@ -77,0 +68,0 @@ modelsFile.addImportDeclarations([ |
@@ -85,8 +85,4 @@ // Copyright (c) Microsoft Corporation. | ||
...getCommonPackageScripts(config), | ||
"check-format": | ||
'prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore "src/**/*.ts" "*.{js,json}" "test/**/*.ts" "samples-dev/**/*.ts"', | ||
clean: | ||
"rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", | ||
format: | ||
'prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore "src/**/*.ts" "*.{js,json}" "test/**/*.ts" "samples-dev/**/*.ts"', | ||
...(config.withTests && testScripts), | ||
@@ -93,0 +89,0 @@ ...getCjsScripts(config), |
@@ -42,4 +42,2 @@ // Copyright (c) Microsoft Corporation. | ||
...getCommonPackageScripts(config), | ||
"check-format": | ||
'prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore "src/**/*.ts" "*.{js,json}" ', | ||
...getCjsScripts(config), | ||
@@ -46,0 +44,0 @@ ...getEsmScripts(config) |
@@ -48,3 +48,2 @@ // Copyright (c) Microsoft Corporation. | ||
eslint: "^8.55.0", | ||
prettier: "^3.2.5", | ||
rimraf: "^5.0.5", | ||
@@ -51,0 +50,0 @@ mkdirp: "^3.0.1", |
@@ -765,7 +765,2 @@ // Copyright (c) Microsoft Corporation. | ||
expect(packageFile.scripts).to.have.property( | ||
"check-format", | ||
'prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore "src/**/*.ts" "*.{js,json}" ' | ||
); | ||
expect(packageFile.scripts).to.have.property( | ||
"build", | ||
@@ -784,7 +779,2 @@ "npm run clean && tshy && npm run extract-api" | ||
expect(packageFile.scripts).to.have.property( | ||
"check-format", | ||
'prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore "src/**/*.ts" "*.{js,json}" ' | ||
); | ||
expect(packageFile.scripts).to.have.property( | ||
"build", | ||
@@ -791,0 +781,0 @@ "npm run clean && tsc && npm run extract-api" |
@@ -41,3 +41,2 @@ import { PackageCommonInfoConfig } from "./packageCommon.js"; | ||
eslint: string; | ||
prettier: string; | ||
rimraf: string; | ||
@@ -54,3 +53,2 @@ mkdirp: string; | ||
eslint: string; | ||
prettier: string; | ||
rimraf: string; | ||
@@ -57,0 +55,0 @@ mkdirp: string; |
@@ -128,3 +128,2 @@ import { AzurePackageInfoConfig } from "./azurePackageCommon.js"; | ||
eslint: string; | ||
prettier: string; | ||
rimraf: string; | ||
@@ -143,3 +142,2 @@ mkdirp: string; | ||
eslint: string; | ||
prettier: string; | ||
rimraf: string; | ||
@@ -274,3 +272,2 @@ mkdirp: string; | ||
eslint: string; | ||
prettier: string; | ||
rimraf: string; | ||
@@ -289,3 +286,2 @@ mkdirp: string; | ||
eslint: string; | ||
prettier: string; | ||
rimraf: string; | ||
@@ -313,3 +309,2 @@ mkdirp: string; | ||
eslint: string; | ||
prettier: string; | ||
rimraf: string; | ||
@@ -328,3 +323,2 @@ mkdirp: string; | ||
eslint: string; | ||
prettier: string; | ||
rimraf: string; | ||
@@ -331,0 +325,0 @@ mkdirp: string; |
@@ -8,3 +8,2 @@ import { PackageCommonInfoConfig } from "./packageCommon.js"; | ||
build?: undefined; | ||
"check-format": string; | ||
"unit-test"?: string | undefined; | ||
@@ -23,3 +22,2 @@ "unit-test:browser"?: string | undefined; | ||
build: string; | ||
"check-format": string; | ||
"unit-test"?: string | undefined; | ||
@@ -38,3 +36,2 @@ "unit-test:browser"?: string | undefined; | ||
build: string; | ||
"check-format": string; | ||
"unit-test"?: string | undefined; | ||
@@ -53,3 +50,2 @@ "unit-test:browser"?: string | undefined; | ||
build: string; | ||
"check-format": string; | ||
"unit-test"?: string | undefined; | ||
@@ -72,3 +68,2 @@ "unit-test:browser"?: string | undefined; | ||
eslint: string; | ||
prettier: string; | ||
rimraf: string; | ||
@@ -82,3 +77,2 @@ mkdirp: string; | ||
eslint: string; | ||
prettier: string; | ||
rimraf: string; | ||
@@ -85,0 +79,0 @@ mkdirp: string; |
@@ -48,3 +48,2 @@ export interface PackageCommonInfoConfig { | ||
eslint: string; | ||
prettier: string; | ||
rimraf: string; | ||
@@ -58,3 +57,2 @@ mkdirp: string; | ||
eslint: string; | ||
prettier: string; | ||
rimraf: string; | ||
@@ -61,0 +59,0 @@ mkdirp: string; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1222149
22134