Skip to content

Commit 3b84f64

Browse files
authored
fix: marketplace README #4639
1 parent 46f2a8f commit 3b84f64

File tree

10 files changed

+8
-28
lines changed

10 files changed

+8
-28
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ jobs:
5252
- name: vsix # TODO: For packages/toolkit release only
5353
run: |
5454
npm run createRelease # Generate CHANGELOG.md
55-
cp ./README.quickstart.vscode.md ./README.md
5655
npm run -w packages/toolkit package -- --feature "$FEAT_NAME"
5756
- uses: actions/upload-artifact@v4
5857
with:

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ coverage
1010
.idea
1111
telemetryCache
1212
quickStart*.html
13-
README.quickstart.cloud9.md
14-
README.quickstart.vscode.md
1513
.gitcommit
1614
__pycache__
1715

@@ -39,7 +37,6 @@ packages/core/src/testFixtures/**/bin
3937
packages/core/src/testFixtures/**/obj
4038

4139
# Generated by copyFiles.ts
42-
packages/*/README*
4340
packages/*/CHANGELOG.md
4441
packages/*/LICENSE
4542
packages/*/NOTICE

CONTRIBUTING.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ Pull requests that change **customer-impacting behavior** must include a changel
252252
253253
npm run newChange
254254
255-
256-
257255
> [!TIP]
258256
>
259257
> - Describe the change in a way that is _meaningful to the customer_. If you can't describe the _customer impact_ then it probably shouldn't be in the changelog.
@@ -270,7 +268,6 @@ Pull requests that change **customer-impacting behavior** must include a changel
270268
> - If there are multiple unrelated changes, run `npm run newChange` for each change.
271269
> - Include the feature that the change affects, Q, CodeWhisperer, etc.
272270
273-
274271
### Commit messages
275272
276273
Generally your PR description should be a copy-paste of your commit message(s).
@@ -539,8 +536,7 @@ As a simple example, let's say I wanted to add a new icon for CloudWatch log str
539536
### VSCode Marketplace
540537

541538
The [marketplace page](https://marketplace.visualstudio.com/itemdetails?itemName=AmazonWebServices.aws-toolkit-vscode)
542-
is defined in `README.quickstart.vscode.md` (which replaces `README.md` during
543-
the release automation). The `vsce` package tool always [replaces relative image paths](https://github.com/microsoft/vscode-vsce/blob/9478dbd11ea2e7adb23ec72923e889c7bb215263/src/package.ts#L885)
539+
is defined in `packages/toolkit/README.md`. The `vsce` package tool always [replaces relative image paths](https://github.com/microsoft/vscode-vsce/blob/9478dbd11ea2e7adb23ec72923e889c7bb215263/src/package.ts#L885)
544540
with URLs pointing to `HEAD` on GitHub (`https://github.com/aws/aws-toolkit-vscode/raw/HEAD/…/foo.gif`).
545541

546542
Note therefore:

buildspec/packageTestVsix.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ phases:
2727
- export HOME=/home/codebuild-user
2828
# Generate CHANGELOG.md
2929
- npm run createRelease
30-
- cp ./README.quickstart.vscode.md ./README.md
3130
- npm run package
3231

3332
artifacts:

buildspec/release/20buildrelease.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ phases:
2121
commands:
2222
# --unsafe-perm is needed because we run as root
2323
- npm ci --unsafe-perm
24-
- cp ./README.quickstart.vscode.md ./README.md
2524
- npm run package
2625

2726
artifacts:
File renamed without changes.
File renamed without changes.

packages/toolkit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"buildScripts": "npm run generateNonCodeFiles && npm run copyFiles",
6060
"generateNonCodeFiles": "ts-node ./scripts/build/generateNonCodeFiles.ts",
6161
"copyFiles": "ts-node ./scripts/build/copyFiles.ts",
62-
"clean": "ts-node ../../scripts/clean.ts dist/ LICENSE NOTICE quickStart* README* CHANGELOG.md",
62+
"clean": "ts-node ../../scripts/clean.ts dist/ LICENSE NOTICE quickStart* CHANGELOG.md",
6363
"compile": "npm run clean && npm run buildScripts && webpack --mode development",
6464
"webWatch": "npm run clean && npm run copyFiles --vueHr && webpack --config-name web --watch",
6565
"webCompile": "npm run clean && npm run buildScripts -- --vueHr && webpack --config-name web",

packages/toolkit/scripts/build/copyFiles.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,7 @@ interface CopyTask {
2929
}
3030

3131
const tasks: CopyTask[] = [
32-
...[
33-
'CHANGELOG.md',
34-
'LICENSE',
35-
'NOTICE',
36-
'README.md',
37-
'README.quickstart.cloud9.md',
38-
'README.quickstart.vscode.md',
39-
'quickStartCloud9-cn.html',
40-
'quickStartCloud9.html',
41-
'quickStartVscode.html',
42-
].map(f => {
32+
...['CHANGELOG.md', 'LICENSE', 'NOTICE'].map(f => {
4333
return { target: path.join('../../', f), destination: path.join(projectRoot, f) }
4434
}),
4535

packages/toolkit/scripts/build/generateNonCodeFiles.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { marked } from 'marked'
99
import * as path from 'path'
1010

1111
// doesn't use path utils as this should be formatted for finding images with HTML markup
12-
const repoRoot = path.join(process.cwd(), '../../') // root/packages/toolkit -> root/
12+
const projectRoot = process.cwd()
1313

1414
/**
1515
* replaces relative paths with an `!!EXTENSIONROOT!!` token.
@@ -47,10 +47,10 @@ function generateFileHash(root: string) {
4747
}
4848

4949
try {
50-
translateReadmeToHtml(repoRoot, 'README.quickstart.vscode.md', 'quickStartVscode.html')
51-
translateReadmeToHtml(repoRoot, 'README.quickstart.cloud9.md', 'quickStartCloud9.html')
52-
translateReadmeToHtml(repoRoot, 'README.quickstart.cloud9.md', 'quickStartCloud9-cn.html', true)
53-
generateFileHash(repoRoot)
50+
translateReadmeToHtml(projectRoot, 'README.md', 'quickStartVscode.html')
51+
translateReadmeToHtml(projectRoot, 'README.quickstart.cloud9.md', 'quickStartCloud9.html')
52+
translateReadmeToHtml(projectRoot, 'README.quickstart.cloud9.md', 'quickStartCloud9-cn.html', true)
53+
generateFileHash(projectRoot)
5454
} catch (error) {
5555
console.error(error)
5656
process.exit(100)

0 commit comments

Comments
 (0)