@simplysf/simply-package 1.11.0 → 2.1.0
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/LICENSE.txt +200 -6
- package/README.md +2 -2
- package/lib/commands/simply/package/dependencies/install.d.ts +1 -1
- package/lib/commands/simply/package/dependencies/install.js +25 -18
- package/lib/commands/simply/package/dependencies/install.js.map +1 -1
- package/lib/commands/simply/package/version/cleanup.js +23 -11
- package/lib/commands/simply/package/version/cleanup.js.map +1 -1
- package/lib/common/packageUtils.d.ts +11 -3
- package/lib/common/packageUtils.js +13 -4
- package/lib/common/packageUtils.js.map +1 -1
- package/lib/index.js +13 -4
- package/lib/index.js.map +1 -1
- package/lib/schemas/sfdx-project/packageDirs.d.ts +19 -0
- package/lib/schemas/sfdx-project/packageDirs.js +43 -0
- package/lib/schemas/sfdx-project/packageDirs.js.map +1 -0
- package/npm-shrinkwrap.json +5934 -3198
- package/oclif.lock +3591 -2558
- package/oclif.manifest.json +1 -1
- package/package.json +20 -20
- package/CHANGELOG.md +0 -275
- package/lib/schemas/packageDirs.d.ts +0 -23
- package/lib/schemas/packageDirs.js +0 -8
- package/lib/schemas/packageDirs.js.map +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2026, Clay Chipps; Copyright (c) 2026 Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { z } from 'zod';
|
|
17
|
+
const PackageDirDependencySchema = z
|
|
18
|
+
.object({
|
|
19
|
+
package: z.string(),
|
|
20
|
+
versionNumber: z.string().optional(),
|
|
21
|
+
branch: z.string().optional(),
|
|
22
|
+
})
|
|
23
|
+
.catchall(z.unknown());
|
|
24
|
+
/** Base properties for all package directories */
|
|
25
|
+
const BasePackageDirPropsSchema = z.object({
|
|
26
|
+
default: z
|
|
27
|
+
.boolean()
|
|
28
|
+
.default(true)
|
|
29
|
+
.optional()
|
|
30
|
+
.describe('If you have specified more than one path, include this parameter for the default path to indicate which is the default package directory.'),
|
|
31
|
+
path: z
|
|
32
|
+
.string()
|
|
33
|
+
.meta({ title: 'Path' })
|
|
34
|
+
.describe("If you don't specify a path, the Salesforce CLI uses a placeholder when you create a package."),
|
|
35
|
+
});
|
|
36
|
+
/** Package directory with package (requires versionNumber) */
|
|
37
|
+
const BasePackageDirWithDependenciesSchema = BasePackageDirPropsSchema.extend({
|
|
38
|
+
dependencies: z
|
|
39
|
+
.array(PackageDirDependencySchema)
|
|
40
|
+
.optional()
|
|
41
|
+
.describe('To specify dependencies for 2GP within the same Dev Hub, use either the package version alias or a combination of the package name and the version number.'),
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=packageDirs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packageDirs.js","sourceRoot":"","sources":["../../../src/schemas/sfdx-project/packageDirs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,0BAA0B,GAAG,CAAC;KACjC,MAAM,CAAC;IACN,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC;KACD,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;AAEzB,kDAAkD;AAClD,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,CAAC;SACP,OAAO,EAAE;SACT,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,EAAE;SACV,QAAQ,CACP,2IAA2I,CAC5I;IACH,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;SACvB,QAAQ,CAAC,+FAA+F,CAAC;CAC7G,CAAC,CAAC;AAEH,8DAA8D;AAC9D,MAAM,oCAAoC,GAAG,yBAAyB,CAAC,MAAM,CAAC;IAC5E,YAAY,EAAE,CAAC;SACZ,KAAK,CAAC,0BAA0B,CAAC;SACjC,QAAQ,EAAE;SACV,QAAQ,CACP,4JAA4J,CAC7J;CACJ,CAAC,CAAC"}
|