@azure-net/cli 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@azure-net/cli",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "azure-net": "bin/azure-net.js"
7
7
  },
8
8
  "peerDependencies": {
9
- "@azure-net/kit": "^1.2.0"
9
+ "@azure-net/kit": "^1.3.0"
10
10
  },
11
11
  "dependencies": {
12
12
  "@azure-net/kit": "^1.2.0",
@@ -40,10 +40,7 @@ async function createBaseStructure(root, contextName, contextAlias) {
40
40
  const infraProviderContent = `import { createBoundaryProvider } from '@azure-net/kit';
41
41
 
42
42
  export const InfrastructureProvider = createBoundaryProvider(
43
- \t'${contextName}InfrastructureProvider',
44
- \t() => ({
45
- \t\t// Infrastructure services will be added here manually
46
- \t})
43
+ \t'${contextName}InfrastructureProvider', {register: () => ({})}
47
44
  );`;
48
45
 
49
46
  await fs.writeFile(
@@ -76,10 +73,12 @@ import { InfrastructureProvider } from '\$${contextAlias}/infrastructure';
76
73
 
77
74
  export const ApplicationProvider = createBoundaryProvider(
78
75
  \t'${contextName}ApplicationProvider',
79
- \t({ InfrastructureProvider }) => ({
76
+ \t{
77
+ \t\tdependsOn: { InfrastructureProvider },
78
+ \t\tregister: ({ InfrastructureProvider }) => ({
80
79
  \t\t// Application services will be added here manually
81
- \t}),
82
- \t{ dependsOn: { InfrastructureProvider } }
80
+ \t\t}),
81
+ \t}
83
82
  );`;
84
83
 
85
84
  await fs.writeFile(