Skip to content

Commit b1183c0

Browse files
xerxovksiAbhishek Das
andauthored
Release 20250224-01 (#29)
* Update express and ws * Change list * Update tests * Update analytics params * Set shouldPublish to true for ccweb-add-on-scripts * Change logs * Revert analytics change --------- Co-authored-by: Abhishek Das <[email protected]>
1 parent a3a3e66 commit b1183c0

File tree

9 files changed

+32
-13
lines changed

9 files changed

+32
-13
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@adobe/ccweb-add-on-scripts",
5+
"comment": "Bug fixes and improvements",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@adobe/ccweb-add-on-scripts"
10+
}

packages/wxp-scripts/.mocharc.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"extension": ["ts"],
3-
"node-option": ["experimental-specifier-resolution=node", "loader=ts-node/esm", "no-warnings"],
3+
"node-option": [
4+
"experimental-specifier-resolution=node",
5+
"loader=ts-node/esm",
6+
"enable-source-maps",
7+
"no-warnings"
8+
],
49
"spec": ["src/test/**/*.spec.ts"]
510
}

packages/wxp-scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adobe/ccweb-add-on-scripts",
3-
"version": "2.4.2",
3+
"version": "2.4.3",
44
"author": "Adobe",
55
"license": "MIT",
66
"description": "Scripts for Adobe Creative Cloud Web Add-on.",

packages/wxp-scripts/src/test/commands/build.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import { AnalyticsErrorMarkers } from "../../AnalyticsMarkers.js";
3636
import type { CommandExecutor } from "../../app/CommandExecutor.js";
3737
import { Build } from "../../commands/build.js";
3838
import { IContainer, ITypes } from "../../config/index.js";
39+
import { PROGRAM_NAME } from "../../constants.js";
3940
import { BuildCommandOptions } from "../../models/BuildCommandOptions.js";
4041

4142
chai.use(chaiAsPromised);
@@ -76,7 +77,7 @@ describe("build", () => {
7677
it("should execute succesfully when no parameters are passed.", async () => {
7778
analyticsConsent.get.resolves(true);
7879

79-
const build = new Build([], new Config({ root: "." }));
80+
const build = new Build([], new Config({ name: PROGRAM_NAME, root: "." }));
8081

8182
await build.run();
8283

packages/wxp-scripts/src/test/commands/clean.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import { AnalyticsErrorMarkers } from "../../AnalyticsMarkers.js";
3535
import type { CommandExecutor } from "../../app/CommandExecutor.js";
3636
import { Clean } from "../../commands/clean.js";
3737
import { IContainer, ITypes } from "../../config/index.js";
38+
import { PROGRAM_NAME } from "../../constants.js";
3839

3940
chai.use(chaiAsPromised);
4041

@@ -74,7 +75,7 @@ describe("clean", () => {
7475
it("should execute succesfully when no parameters are passed.", async () => {
7576
analyticsConsent.get.resolves(true);
7677

77-
const clean = new Clean([], new Config({ root: "." }));
78+
const clean = new Clean([], new Config({ name: PROGRAM_NAME, root: "." }));
7879

7980
await clean.run();
8081

packages/wxp-scripts/src/test/commands/commands.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ describe("ccweb-add-on-scripts", () => {
9292

9393
describe("clean", () => {
9494
test.stdout()
95-
.command(["clean"])
95+
.command(["clean", "--analytics", "off"])
9696
.it("should execute succesfully when no parameters are passed.", async () => {
9797
assert.equal(commandExecutor.execute.callCount, 1);
9898
});

packages/wxp-scripts/src/test/commands/package.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import type { CommandExecutor } from "../../app/CommandExecutor.js";
3737
import { Package } from "../../commands/package.js";
3838
import { IContainer, ITypes } from "../../config/index.js";
3939
import { PackageCommandOptions } from "../../models/PackageCommandOptions.js";
40+
import { PROGRAM_NAME } from "../../constants.js";
4041

4142
chai.use(chaiAsPromised);
4243

@@ -76,7 +77,7 @@ describe("package", () => {
7677
it("should execute succesfully when no parameters are passed.", async () => {
7778
analyticsConsent.get.resolves(true);
7879

79-
const packageCommand = new Package([], new Config({ root: "." }));
80+
const packageCommand = new Package([], new Config({ name: PROGRAM_NAME, root: "." }));
8081

8182
await packageCommand.run();
8283

@@ -92,7 +93,7 @@ describe("package", () => {
9293

9394
const packageCommand = new Package(
9495
["--src", DEFAULT_SRC_DIRECTORY, "--use", "tsc", "--no-rebuild", "--analytics", "off", "--verbose"],
95-
new Config({ root: "." })
96+
new Config({ name: PROGRAM_NAME, root: "." })
9697
);
9798

9899
await packageCommand.run();
@@ -106,7 +107,7 @@ describe("package", () => {
106107

107108
describe("catch", () => {
108109
it("should fail when incorrect params are passed", async () => {
109-
const setup = new Package(["--incorrect-flag"], new Config({ root: "." }));
110+
const setup = new Package(["--incorrect-flag"], new Config({ name: PROGRAM_NAME, root: "." }));
110111

111112
const error = new Error("Nonexistent flag: --incorrect-flag\nSee more help with --help");
112113

packages/wxp-scripts/src/test/commands/start.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import { AnalyticsErrorMarkers } from "../../AnalyticsMarkers.js";
3737
import type { CommandExecutor } from "../../app/CommandExecutor.js";
3838
import { Start } from "../../commands/start.js";
3939
import { IContainer, ITypes } from "../../config/index.js";
40+
import { PROGRAM_NAME } from "../../constants.js";
4041
import { StartCommandOptions } from "../../models/StartCommandOptions.js";
4142
import type { CommandValidator } from "../../validators/CommandValidator.js";
4243

@@ -91,7 +92,7 @@ describe("start", () => {
9192
it("should execute succesfully when no parameters are passed.", async () => {
9293
analyticsConsent.get.resolves(true);
9394

94-
const start = new Start([], new Config({ root: "." }));
95+
const start = new Start([], new Config({ name: PROGRAM_NAME, root: "." }));
9596

9697
await start.run();
9798

@@ -111,7 +112,7 @@ describe("start", () => {
111112
it("should execute succesfully when parameters are passed.", async () => {
112113
const start = new Start(
113114
["--src", DEFAULT_SRC_DIRECTORY, "--use", "tsc", "--port", "8000", "--analytics", "off", "--verbose"],
114-
new Config({ root: "." })
115+
new Config({ name: PROGRAM_NAME, root: "." })
115116
);
116117

117118
await start.run();
@@ -125,7 +126,7 @@ describe("start", () => {
125126

126127
describe("catch", () => {
127128
it("should fail when incorrect params are passed", async () => {
128-
const setup = new Start(["--incorrect-flag"], new Config({ root: "." }));
129+
const setup = new Start(["--incorrect-flag"], new Config({ name: PROGRAM_NAME, root: "." }));
129130

130131
const error = new Error("Nonexistent flag: --incorrect-flag\nSee more help with --help");
131132

rush.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"packageName": "@adobe/ccweb-add-on-scripts",
4444
"projectFolder": "packages/wxp-scripts",
4545
"reviewCategory": "production",
46-
"shouldPublish": false
46+
"shouldPublish": true
4747
},
4848
{
4949
"packageName": "@adobe/ccweb-add-on-ssl",
@@ -61,7 +61,7 @@
6161
"packageName": "@adobe/ccweb-add-on-sdk-types",
6262
"projectFolder": "packages/wxp-sdk-types",
6363
"reviewCategory": "production",
64-
"shouldPublish": true
64+
"shouldPublish": false
6565
}
6666
]
6767
}

0 commit comments

Comments
 (0)