@simplysf/simply-project 1.2.1 → 1.2.2

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.
Files changed (2) hide show
  1. package/README.md +63 -0
  2. package/package.json +10 -8
package/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # @simplysf/simply-project
2
+
3
+ [![NPM](https://img.shields.io/npm/v/@simplysf/simply-project?label=@simplysf/simply-project)](https://npmjs.com/@simplysf/simply-project) [![Downloads/week](https://img.shields.io/npm/dw/@simplysf/simply-project.svg)](https://npmjs.com/@simplysf/simply-project) [![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://raw.githubusercontent.com/SimplySF/simply/main/LICENSE.txt)
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ sf plugins install @simplysf/simply-project
9
+ ```
10
+
11
+ ## Issues
12
+
13
+ Please report any issues at https://github.com/SimplySF/simply/issues
14
+
15
+ ## Contributing
16
+
17
+ This package is part of the [`@simplysf/simply`](https://github.com/SimplySF/simply) monorepo. See the repo's [CONTRIBUTING.md](https://github.com/SimplySF/simply/blob/main/CONTRIBUTING.md) for the repo structure, how to set up and build the project, our commit conventions, and how to submit a pull request. Please also read our [Code of Conduct](https://github.com/SimplySF/simply/blob/main/CODE_OF_CONDUCT.md).
18
+
19
+ ## Commands
20
+
21
+ <!-- commands -->
22
+
23
+ - [`sf simply project update-api-version`](#sf-simply-project-update-api-version)
24
+
25
+ ## `sf simply project update-api-version`
26
+
27
+ Update the Salesforce API version across a project's metadata.
28
+
29
+ ```
30
+ USAGE
31
+ $ sf simply project update-api-version -d <value> -a <value> [--json] [--flags-dir <value>]
32
+
33
+ FLAGS
34
+ -a, --api-version=<value> (required) Target Salesforce API version
35
+ -d, --directory=<value> (required) Path to the Salesforce project directory
36
+
37
+ GLOBAL FLAGS
38
+ --flags-dir=<value> Import flag values from a directory.
39
+ --json Format output as json.
40
+
41
+ DESCRIPTION
42
+ Update the Salesforce API version across a project's metadata.
43
+
44
+ Recursively scans a directory for `-meta.xml` files and updates every `<apiVersion>` tag to the target version. If the
45
+ directory contains an `sfdx-project.json` file, its `sourceApiVersion` property is updated to match.
46
+
47
+ EXAMPLES
48
+ $ sf simply project update-api-version --directory force-app --api-version 62.0
49
+
50
+ $ sf simply project update-api-version --directory . --api-version 63.0
51
+
52
+ FLAG DESCRIPTIONS
53
+ -a, --api-version=<value> Target Salesforce API version
54
+
55
+ The Salesforce API version to set on all metadata files and, if present, sfdx-project.json.
56
+
57
+ -d, --directory=<value> Path to the Salesforce project directory
58
+
59
+ The path to the Salesforce project directory to scan for metadata files.
60
+ ```
61
+
62
+ _See code: [lib/commands/simply/project/update-api-version.js](https://github.com/SimplySF/simply/blob/@simplysf/simply-project@1.2.1/packages/simply-project/lib/commands/simply/project/update-api-version.js)_
63
+ <!-- commandsstop -->
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simplysf/simply-project",
3
3
  "description": "Utilities for working with Salesforce projects",
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "author": "@ClayChipps",
6
6
  "homepage": "https://github.com/SimplySF/simply",
7
7
  "bugs": "https://github.com/SimplySF/simply/issues",
@@ -64,7 +64,9 @@
64
64
  },
65
65
  "devDependencies": {
66
66
  "@oclif/plugin-command-snapshot": "^5.3.19",
67
- "@salesforce/plugin-command-reference": "^3.1.99"
67
+ "@salesforce/plugin-command-reference": "^3.1.99",
68
+ "@vitest/coverage-v8": "^4.1.10",
69
+ "vitest": "^4.1.10"
68
70
  },
69
71
  "publishConfig": {
70
72
  "access": "public"
@@ -78,9 +80,10 @@
78
80
  "lint": "wireit",
79
81
  "readme": "oclif readme --no-aliases",
80
82
  "test": "wireit",
83
+ "test:coverage": "vitest run --coverage",
81
84
  "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 1200000 --parallel --jobs 5",
82
85
  "test:only": "wireit",
83
- "test:watch": "mocha --watch \"./test/**/*.test.ts\""
86
+ "test:watch": "vitest watch"
84
87
  },
85
88
  "wireit": {
86
89
  "build": {
@@ -175,7 +178,7 @@
175
178
  "output": []
176
179
  },
177
180
  "test:only": {
178
- "command": "nyc mocha \"test/**/*.test.ts\"",
181
+ "command": "vitest run",
179
182
  "env": {
180
183
  "FORCE_COLOR": "2"
181
184
  },
@@ -183,9 +186,8 @@
183
186
  "test/**/*.ts",
184
187
  "src/**/*.ts",
185
188
  "**/tsconfig.json",
186
- ".mocha*",
187
- "!*.nut.ts",
188
- ".nycrc"
189
+ "vitest.config.ts",
190
+ "!*.nut.ts"
189
191
  ],
190
192
  "output": []
191
193
  },
@@ -199,5 +201,5 @@
199
201
  "output": []
200
202
  }
201
203
  },
202
- "gitHead": "723fbef6eeeda978ccdacd5c3ae6cab521c83c49"
204
+ "gitHead": "ddaa65ef57d74cbff83875acaec5e10beb7f77ba"
203
205
  }