@nexusclawhq/cli 0.3.21 → 0.3.22
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/CHANGELOG.md +12 -0
- package/dist/build-info.json +4 -4
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.d.ts +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.js +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.d.ts +21 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js +21 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/index.d.ts +42 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.d.ts +21 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js +21 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/system-object-persistence.d.ts +21 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/system-object-persistence.js +29 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/system-object-persistence.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/package.json +4 -0
- package/dist/nexus-cli/src/commands/commands.test.js +3 -3
- package/dist/nexus-cli/src/commands/commands.test.js.map +1 -1
- package/dist/nexus-cli/src/commands/data/query.d.ts +7 -0
- package/dist/nexus-cli/src/commands/data/query.js +29 -9
- package/dist/nexus-cli/src/commands/data/query.js.map +1 -1
- package/dist/nexus-cli/src/commands/data/query.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/data/query.test.js +31 -0
- package/dist/nexus-cli/src/commands/data/query.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/deployment/history.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/deployment/history.test.js +16 -0
- package/dist/nexus-cli/src/commands/deployment/history.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/deployment/index.d.ts +4 -0
- package/dist/nexus-cli/src/commands/deployment/index.js +16 -3
- package/dist/nexus-cli/src/commands/deployment/index.js.map +1 -1
- package/dist/nexus-cli/src/commands/deployment/report.d.ts +1 -0
- package/dist/nexus-cli/src/commands/deployment/report.js +16 -35
- package/dist/nexus-cli/src/commands/deployment/report.js.map +1 -1
- package/dist/nexus-cli/src/commands/deployment/report.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/deployment/report.test.js +14 -0
- package/dist/nexus-cli/src/commands/deployment/report.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/deployment/resume.js +16 -2
- package/dist/nexus-cli/src/commands/deployment/resume.js.map +1 -1
- package/dist/nexus-cli/src/commands/dx-json-option.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/dx-json-option.test.js +39 -0
- package/dist/nexus-cli/src/commands/dx-json-option.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/dx-workflows.e2e.test.js +33 -0
- package/dist/nexus-cli/src/commands/dx-workflows.e2e.test.js.map +1 -1
- package/dist/nexus-cli/src/commands/dx.js +193 -10
- package/dist/nexus-cli/src/commands/dx.js.map +1 -1
- package/dist/nexus-cli/src/commands/employee/deploy.e2e.test.js +29 -0
- package/dist/nexus-cli/src/commands/employee/deploy.e2e.test.js.map +1 -1
- package/dist/nexus-cli/src/commands/employee/deploy.js +6 -2
- package/dist/nexus-cli/src/commands/employee/deploy.js.map +1 -1
- package/dist/nexus-cli/src/commands/generate/class.js +6 -1
- package/dist/nexus-cli/src/commands/generate/class.js.map +1 -1
- package/dist/nexus-cli/src/commands/generate/component.js +6 -1
- package/dist/nexus-cli/src/commands/generate/component.js.map +1 -1
- package/dist/nexus-cli/src/commands/generate/generate-result.d.ts +6 -0
- package/dist/nexus-cli/src/commands/generate/generate-result.js +52 -0
- package/dist/nexus-cli/src/commands/generate/generate-result.js.map +1 -0
- package/dist/nexus-cli/src/commands/generate/project.js +6 -0
- package/dist/nexus-cli/src/commands/generate/project.js.map +1 -1
- package/dist/nexus-cli/src/commands/generate/test.js +6 -1
- package/dist/nexus-cli/src/commands/generate/test.js.map +1 -1
- package/dist/nexus-cli/src/commands/generate/trigger.js +6 -1
- package/dist/nexus-cli/src/commands/generate/trigger.js.map +1 -1
- package/dist/nexus-cli/src/commands/log/get.js +11 -6
- package/dist/nexus-cli/src/commands/log/get.js.map +1 -1
- package/dist/nexus-cli/src/commands/log/list.js +15 -11
- package/dist/nexus-cli/src/commands/log/list.js.map +1 -1
- package/dist/nexus-cli/src/commands/log-sandbox-contract.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/log-sandbox-contract.test.js +25 -0
- package/dist/nexus-cli/src/commands/log-sandbox-contract.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/machine-json-surface.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/machine-json-surface.test.js +67 -0
- package/dist/nexus-cli/src/commands/machine-json-surface.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/metadata/diff.js +31 -4
- package/dist/nexus-cli/src/commands/metadata/diff.js.map +1 -1
- package/dist/nexus-cli/src/commands/metadata/export.e2e.test.js +25 -19
- package/dist/nexus-cli/src/commands/metadata/export.e2e.test.js.map +1 -1
- package/dist/nexus-cli/src/commands/metadata/export.js +36 -5
- package/dist/nexus-cli/src/commands/metadata/export.js.map +1 -1
- package/dist/nexus-cli/src/commands/metadata/validate-source.d.ts +4 -0
- package/dist/nexus-cli/src/commands/metadata/validate-source.js +31 -2
- package/dist/nexus-cli/src/commands/metadata/validate-source.js.map +1 -1
- package/dist/nexus-cli/src/commands/metadata/validate-source.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/metadata/validate-source.test.js +23 -0
- package/dist/nexus-cli/src/commands/metadata/validate-source.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/org/display.js +3 -3
- package/dist/nexus-cli/src/commands/org/display.js.map +1 -1
- package/dist/nexus-cli/src/commands/org/list.js +4 -2
- package/dist/nexus-cli/src/commands/org/list.js.map +1 -1
- package/dist/nexus-cli/src/commands/org/login-web.d.ts +7 -0
- package/dist/nexus-cli/src/commands/org/login-web.js +43 -7
- package/dist/nexus-cli/src/commands/org/login-web.js.map +1 -1
- package/dist/nexus-cli/src/commands/org/login-web.test.js +21 -0
- package/dist/nexus-cli/src/commands/org/login-web.test.js.map +1 -1
- package/dist/nexus-cli/src/commands/org/open.d.ts +1 -0
- package/dist/nexus-cli/src/commands/org/open.js +8 -2
- package/dist/nexus-cli/src/commands/org/open.js.map +1 -1
- package/dist/nexus-cli/src/commands/org/open.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/org/open.test.js +16 -0
- package/dist/nexus-cli/src/commands/org/open.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/history.js +9 -3
- package/dist/nexus-cli/src/commands/package/history.js.map +1 -1
- package/dist/nexus-cli/src/commands/package/install.js +1 -0
- package/dist/nexus-cli/src/commands/package/install.js.map +1 -1
- package/dist/nexus-cli/src/commands/package/list.js +7 -4
- package/dist/nexus-cli/src/commands/package/list.js.map +1 -1
- package/dist/nexus-cli/src/commands/package/list.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/package/list.test.js +33 -0
- package/dist/nexus-cli/src/commands/package/list.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/project/index.js +5 -3
- package/dist/nexus-cli/src/commands/project/index.js.map +1 -1
- package/dist/nexus-cli/src/commands/revision/history.js +4 -2
- package/dist/nexus-cli/src/commands/revision/history.js.map +1 -1
- package/dist/nexus-cli/src/commands/sandbox/list.js +4 -5
- package/dist/nexus-cli/src/commands/sandbox/list.js.map +1 -1
- package/dist/nexus-cli/src/commands/source/pull-baseline.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/source/pull-baseline.test.js +60 -0
- package/dist/nexus-cli/src/commands/source/pull-baseline.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/source/pull.d.ts +7 -0
- package/dist/nexus-cli/src/commands/source/pull.js +32 -5
- package/dist/nexus-cli/src/commands/source/pull.js.map +1 -1
- package/dist/nexus-cli/src/commands/workforce/escalation.d.ts +2 -0
- package/dist/nexus-cli/src/commands/workforce/escalation.js +62 -0
- package/dist/nexus-cli/src/commands/workforce/escalation.js.map +1 -0
- package/dist/nexus-cli/src/commands/workforce/index.js +4 -0
- package/dist/nexus-cli/src/commands/workforce/index.js.map +1 -1
- package/dist/nexus-cli/src/commands/workforce/knowledge.js +5 -0
- package/dist/nexus-cli/src/commands/workforce/knowledge.js.map +1 -1
- package/dist/nexus-cli/src/commands/workforce/notification.d.ts +2 -0
- package/dist/nexus-cli/src/commands/workforce/notification.js +71 -0
- package/dist/nexus-cli/src/commands/workforce/notification.js.map +1 -0
- package/dist/nexus-cli/src/commands/workforce/task.js +55 -4
- package/dist/nexus-cli/src/commands/workforce/task.js.map +1 -1
- package/dist/nexus-cli/src/commands/workspace/index.js +5 -2
- package/dist/nexus-cli/src/commands/workspace/index.js.map +1 -1
- package/dist/nexus-cli/src/commands/workspace/workspace.e2e.test.js +4 -4
- package/dist/nexus-cli/src/commands/workspace/workspace.e2e.test.js.map +1 -1
- package/dist/nexus-cli/src/services/api-client.d.ts +9 -0
- package/dist/nexus-cli/src/services/api-client.js +99 -11
- package/dist/nexus-cli/src/services/api-client.js.map +1 -1
- package/dist/nexus-cli/src/services/api-client.test.js +118 -8
- package/dist/nexus-cli/src/services/api-client.test.js.map +1 -1
- package/dist/nexus-cli/src/services/auth-store.d.ts +3 -0
- package/dist/nexus-cli/src/services/auth-store.js +24 -0
- package/dist/nexus-cli/src/services/auth-store.js.map +1 -1
- package/dist/nexus-cli/src/services/auth-store.test.js +19 -0
- package/dist/nexus-cli/src/services/auth-store.test.js.map +1 -1
- package/dist/nexus-cli/src/services/pack-registry.js +7 -0
- package/dist/nexus-cli/src/services/pack-registry.js.map +1 -1
- package/dist/nexus-cli/src/services/package-manifest.d.ts +5 -0
- package/dist/nexus-cli/src/services/package-manifest.js +35 -0
- package/dist/nexus-cli/src/services/package-manifest.js.map +1 -1
- package/dist/nexus-cli/src/services/package-manifest.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/package-manifest.test.js +48 -0
- package/dist/nexus-cli/src/services/package-manifest.test.js.map +1 -0
- package/dist/nexus-cli/src/services/user-service-account-remote.js +3 -1
- package/dist/nexus-cli/src/services/user-service-account-remote.js.map +1 -1
- package/dist/nexus-cli/src/services/user-service-account-remote.test.js +5 -0
- package/dist/nexus-cli/src/services/user-service-account-remote.test.js.map +1 -1
- package/dist/nexus-cli/src/services/workforce-conversation-remote.d.ts +52 -0
- package/dist/nexus-cli/src/services/workforce-conversation-remote.js +119 -0
- package/dist/nexus-cli/src/services/workforce-conversation-remote.js.map +1 -0
- package/dist/nexus-cli/src/services/workforce-conversation-remote.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/workforce-conversation-remote.test.js +115 -0
- package/dist/nexus-cli/src/services/workforce-conversation-remote.test.js.map +1 -0
- package/dist/nexus-cli/src/services/workforce-guardrail-knowledge-remote.d.ts +17 -0
- package/dist/nexus-cli/src/services/workforce-guardrail-knowledge-remote.js +10 -0
- package/dist/nexus-cli/src/services/workforce-guardrail-knowledge-remote.js.map +1 -1
- package/dist/nexus-cli/src/services/workforce-guardrail-knowledge-remote.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/workforce-guardrail-knowledge-remote.test.js +65 -0
- package/dist/nexus-cli/src/services/workforce-guardrail-knowledge-remote.test.js.map +1 -0
- package/dist/nexus-cli/src/services/workforce-notification-remote.d.ts +61 -0
- package/dist/nexus-cli/src/services/workforce-notification-remote.js +87 -0
- package/dist/nexus-cli/src/services/workforce-notification-remote.js.map +1 -0
- package/dist/nexus-cli/src/services/workforce-notification-remote.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/workforce-notification-remote.test.js +78 -0
- package/dist/nexus-cli/src/services/workforce-notification-remote.test.js.map +1 -0
- package/dist/nexus-cli/src/services/workforce-orchestration-remote.d.ts +6 -0
- package/dist/nexus-cli/src/services/workforce-orchestration-remote.js +23 -12
- package/dist/nexus-cli/src/services/workforce-orchestration-remote.js.map +1 -1
- package/dist/nexus-cli/src/services/workforce-orchestration-remote.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/workforce-orchestration-remote.test.js +18 -0
- package/dist/nexus-cli/src/services/workforce-orchestration-remote.test.js.map +1 -0
- package/dist/nexus-cli/src/services/workforce-test-remote.d.ts +1 -1
- package/dist/nexus-cli/src/services/workforce-test-remote.js +19 -2
- package/dist/nexus-cli/src/services/workforce-test-remote.js.map +1 -1
- package/dist/nexus-cli/src/services/workforce-test-remote.test.js +7 -1
- package/dist/nexus-cli/src/services/workforce-test-remote.test.js.map +1 -1
- package/dist/nexus-cli/src/services/workspace-health.js +6 -0
- package/dist/nexus-cli/src/services/workspace-health.js.map +1 -1
- package/dist/nexus-cli/src/services/workspace-health.test.js +65 -0
- package/dist/nexus-cli/src/services/workspace-health.test.js.map +1 -1
- package/dist/nexus-cli/src/templates/project/templates/base-crm/package.json.tpl +0 -3
- package/dist/nexus-cli/src/templates/project/templates/base-crm/src-index.ts.tpl +2 -0
- package/dist/nexus-cli/src/templates/project/templates/base-crm/tsconfig.json.tpl +2 -2
- package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/package.json.tpl +0 -3
- package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/src-index.ts.tpl +2 -0
- package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/tsconfig.json.tpl +2 -2
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/package.json.tpl +0 -3
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/src-index.ts.tpl +2 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/tsconfig.json.tpl +2 -2
- package/dist/nexus-cli/src/templates/project/templates/empty/package.json.tpl +0 -3
- package/dist/nexus-cli/src/templates/project/templates/empty/src-index.ts.tpl +2 -0
- package/dist/nexus-cli/src/templates/project/templates/empty/tsconfig.json.tpl +2 -2
- package/dist/nexus-cli/src/templates/project/templates/executable-workforce/package.json.tpl +0 -3
- package/dist/nexus-cli/src/templates/project/templates/executable-workforce/src-index.ts.tpl +2 -0
- package/dist/nexus-cli/src/templates/project/templates/executable-workforce/tsconfig.json.tpl +1 -1
- package/dist/nexus-cli/src/templates/project/templates/industry-education/package.json.tpl +0 -3
- package/dist/nexus-cli/src/templates/project/templates/industry-education/src-index.ts.tpl +2 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-education/tsconfig.json.tpl +2 -2
- package/dist/nexus-cli/src/templates/project/templates/industry-finance/package.json.tpl +0 -3
- package/dist/nexus-cli/src/templates/project/templates/industry-finance/src-index.ts.tpl +2 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-finance/tsconfig.json.tpl +2 -2
- package/dist/nexus-cli/src/templates/project/templates/industry-healthcare/package.json.tpl +0 -3
- package/dist/nexus-cli/src/templates/project/templates/industry-healthcare/src-index.ts.tpl +2 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-healthcare/tsconfig.json.tpl +2 -2
- package/dist/nexus-cli/src/templates/project/templates/industry-partner-cloud/package.json.tpl +0 -3
- package/dist/nexus-cli/src/templates/project/templates/industry-partner-cloud/src-index.ts.tpl +2 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-partner-cloud/tsconfig.json.tpl +2 -2
- package/dist/nexus-cli/src/templates/project/templates/industry-retail/package.json.tpl +0 -3
- package/dist/nexus-cli/src/templates/project/templates/industry-retail/src-index.ts.tpl +2 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-retail/tsconfig.json.tpl +2 -2
- package/dist/nexus-cli/src/utils/command-options.d.ts +8 -0
- package/dist/nexus-cli/src/utils/command-options.js +14 -0
- package/dist/nexus-cli/src/utils/command-options.js.map +1 -0
- package/dist/nexus-cli/src/utils/command-options.test.d.ts +1 -0
- package/dist/nexus-cli/src/utils/command-options.test.js +23 -0
- package/dist/nexus-cli/src/utils/command-options.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"module": "commonjs",
|
|
5
5
|
"lib": ["ES2020"],
|
|
6
6
|
"outDir": "./dist",
|
|
7
|
-
"rootDir": "
|
|
7
|
+
"rootDir": ".",
|
|
8
8
|
"strict": true,
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"experimentalDecorators": true,
|
|
11
11
|
"emitDecoratorMetadata": true,
|
|
12
12
|
"skipLibCheck": true
|
|
13
13
|
},
|
|
14
|
-
"include": ["src/**/*"]
|
|
14
|
+
"include": ["src-index.ts", "src/**/*"]
|
|
15
15
|
}
|
package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/tsconfig.json.tpl
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"module": "commonjs",
|
|
5
5
|
"lib": ["ES2020", "DOM"],
|
|
6
6
|
"outDir": "./dist",
|
|
7
|
-
"rootDir": "
|
|
7
|
+
"rootDir": ".",
|
|
8
8
|
"strict": true,
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"skipLibCheck": true,
|
|
11
11
|
"allowJs": true,
|
|
12
12
|
"checkJs": false
|
|
13
13
|
},
|
|
14
|
-
"include": ["src/**/*"]
|
|
14
|
+
"include": ["src-index.ts", "src/**/*"]
|
|
15
15
|
}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"module": "commonjs",
|
|
5
5
|
"lib": ["ES2020"],
|
|
6
6
|
"outDir": "./dist",
|
|
7
|
-
"rootDir": "
|
|
7
|
+
"rootDir": ".",
|
|
8
8
|
"strict": true,
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"experimentalDecorators": true,
|
|
11
11
|
"emitDecoratorMetadata": true,
|
|
12
12
|
"skipLibCheck": true
|
|
13
13
|
},
|
|
14
|
-
"include": ["src/**/*"]
|
|
14
|
+
"include": ["src-index.ts", "src/**/*"]
|
|
15
15
|
}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"module": "commonjs",
|
|
5
5
|
"lib": ["ES2020"],
|
|
6
6
|
"outDir": "./dist",
|
|
7
|
-
"rootDir": "
|
|
7
|
+
"rootDir": ".",
|
|
8
8
|
"strict": true,
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"experimentalDecorators": true,
|
|
11
11
|
"emitDecoratorMetadata": true,
|
|
12
12
|
"skipLibCheck": true
|
|
13
13
|
},
|
|
14
|
-
"include": ["src/**/*"]
|
|
14
|
+
"include": ["src-index.ts", "src/**/*"]
|
|
15
15
|
}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"module": "commonjs",
|
|
5
5
|
"lib": ["ES2020"],
|
|
6
6
|
"outDir": "./dist",
|
|
7
|
-
"rootDir": "
|
|
7
|
+
"rootDir": ".",
|
|
8
8
|
"strict": true,
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"experimentalDecorators": true,
|
|
11
11
|
"emitDecoratorMetadata": true,
|
|
12
12
|
"skipLibCheck": true
|
|
13
13
|
},
|
|
14
|
-
"include": ["src/**/*"]
|
|
14
|
+
"include": ["src-index.ts", "src/**/*"]
|
|
15
15
|
}
|
package/dist/nexus-cli/src/templates/project/templates/industry-healthcare/tsconfig.json.tpl
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"module": "commonjs",
|
|
5
5
|
"lib": ["ES2020"],
|
|
6
6
|
"outDir": "./dist",
|
|
7
|
-
"rootDir": "
|
|
7
|
+
"rootDir": ".",
|
|
8
8
|
"strict": true,
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"experimentalDecorators": true,
|
|
11
11
|
"emitDecoratorMetadata": true,
|
|
12
12
|
"skipLibCheck": true
|
|
13
13
|
},
|
|
14
|
-
"include": ["src/**/*"]
|
|
14
|
+
"include": ["src-index.ts", "src/**/*"]
|
|
15
15
|
}
|
package/dist/nexus-cli/src/templates/project/templates/industry-partner-cloud/tsconfig.json.tpl
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"module": "commonjs",
|
|
5
5
|
"lib": ["ES2020"],
|
|
6
6
|
"outDir": "./dist",
|
|
7
|
-
"rootDir": "
|
|
7
|
+
"rootDir": ".",
|
|
8
8
|
"strict": true,
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"experimentalDecorators": true,
|
|
11
11
|
"emitDecoratorMetadata": true,
|
|
12
12
|
"skipLibCheck": true
|
|
13
13
|
},
|
|
14
|
-
"include": ["src/**/*"]
|
|
14
|
+
"include": ["src-index.ts", "src/**/*"]
|
|
15
15
|
}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"module": "commonjs",
|
|
5
5
|
"lib": ["ES2020"],
|
|
6
6
|
"outDir": "./dist",
|
|
7
|
-
"rootDir": "
|
|
7
|
+
"rootDir": ".",
|
|
8
8
|
"strict": true,
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"experimentalDecorators": true,
|
|
11
11
|
"emitDecoratorMetadata": true,
|
|
12
12
|
"skipLibCheck": true
|
|
13
13
|
},
|
|
14
|
-
"include": ["src/**/*"]
|
|
14
|
+
"include": ["src-index.ts", "src/**/*"]
|
|
15
15
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Command } from 'commander';
|
|
2
|
+
export declare function isJsonOutputRequested(options: {
|
|
3
|
+
json?: boolean;
|
|
4
|
+
} | undefined, command: Command): boolean;
|
|
5
|
+
export declare function resolveEnvironmentOption(options: {
|
|
6
|
+
env?: string;
|
|
7
|
+
environment?: string;
|
|
8
|
+
}): string | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isJsonOutputRequested = isJsonOutputRequested;
|
|
4
|
+
exports.resolveEnvironmentOption = resolveEnvironmentOption;
|
|
5
|
+
function isJsonOutputRequested(options, command) {
|
|
6
|
+
return options?.json === true || command.optsWithGlobals().json === true;
|
|
7
|
+
}
|
|
8
|
+
function resolveEnvironmentOption(options) {
|
|
9
|
+
if (options.env && options.environment && options.env !== options.environment) {
|
|
10
|
+
throw new Error(`Conflicting environment options: --env ${options.env} and --environment ${options.environment}`);
|
|
11
|
+
}
|
|
12
|
+
return options.env ?? options.environment;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=command-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-options.js","sourceRoot":"","sources":["../../../../src/utils/command-options.ts"],"names":[],"mappings":";;AAEA,sDAKC;AAED,4DAQC;AAfD,SAAgB,qBAAqB,CACnC,OAAuC,EACvC,OAAgB;IAEhB,OAAO,OAAO,EAAE,IAAI,KAAK,IAAI,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC;AAC3E,CAAC;AAED,SAAgB,wBAAwB,CAAC,OAGxC;IACC,IAAI,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,GAAG,KAAK,OAAO,CAAC,WAAW,EAAE,CAAC;QAC9E,MAAM,IAAI,KAAK,CAAC,0CAA0C,OAAO,CAAC,GAAG,sBAAsB,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IACpH,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,WAAW,CAAC;AAC5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const strict_1 = __importDefault(require("node:assert/strict"));
|
|
7
|
+
const node_test_1 = __importDefault(require("node:test"));
|
|
8
|
+
const commander_1 = require("commander");
|
|
9
|
+
const command_options_1 = require("./command-options");
|
|
10
|
+
(0, node_test_1.default)('JSON output resolves from either local or parent/global command options', async () => {
|
|
11
|
+
const program = new commander_1.Command().option('--json');
|
|
12
|
+
const child = program.command('child').option('--json');
|
|
13
|
+
await program.parseAsync(['node', 'nexus', '--json', 'child'], { from: 'node' });
|
|
14
|
+
strict_1.default.equal((0, command_options_1.isJsonOutputRequested)(child.opts(), child), true);
|
|
15
|
+
strict_1.default.equal((0, command_options_1.isJsonOutputRequested)({ json: true }, child), true);
|
|
16
|
+
});
|
|
17
|
+
(0, node_test_1.default)('environment aliases resolve identically and reject conflicting values', () => {
|
|
18
|
+
strict_1.default.equal((0, command_options_1.resolveEnvironmentOption)({ env: 'dev' }), 'dev');
|
|
19
|
+
strict_1.default.equal((0, command_options_1.resolveEnvironmentOption)({ environment: 'dev' }), 'dev');
|
|
20
|
+
strict_1.default.equal((0, command_options_1.resolveEnvironmentOption)({ env: 'dev', environment: 'dev' }), 'dev');
|
|
21
|
+
strict_1.default.throws(() => (0, command_options_1.resolveEnvironmentOption)({ env: 'dev', environment: 'prod' }), /Conflicting environment options/);
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=command-options.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-options.test.js","sourceRoot":"","sources":["../../../../src/utils/command-options.test.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,0DAA6B;AAC7B,yCAAoC;AAEpC,uDAAoF;AAEpF,IAAA,mBAAI,EAAC,yEAAyE,EAAE,KAAK,IAAI,EAAE;IACzF,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC/C,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAExD,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;IACjF,gBAAM,CAAC,KAAK,CAAC,IAAA,uCAAqB,EAAC,KAAK,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;IAC/D,gBAAM,CAAC,KAAK,CAAC,IAAA,uCAAqB,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;AACnE,CAAC,CAAC,CAAC;AAEH,IAAA,mBAAI,EAAC,uEAAuE,EAAE,GAAG,EAAE;IACjF,gBAAM,CAAC,KAAK,CAAC,IAAA,0CAAwB,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;IAC9D,gBAAM,CAAC,KAAK,CAAC,IAAA,0CAAwB,EAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;IACtE,gBAAM,CAAC,KAAK,CAAC,IAAA,0CAAwB,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;IAClF,gBAAM,CAAC,MAAM,CACX,GAAG,EAAE,CAAC,IAAA,0CAAwB,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EACnE,iCAAiC,CAClC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|