Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ concurrency:

permissions:
contents: read
packages: read

jobs:
build:
Expand Down Expand Up @@ -51,6 +52,8 @@ jobs:
submodules: true

- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
node-version-file: package.json
registry-url: https://npm.pkg.github.com
Expand Down Expand Up @@ -170,6 +173,8 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
node-version-file: package.json
registry-url: https://npm.pkg.github.com
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/tpip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
report:
permissions:
contents: write # for Git to git push
packages: read

name: Generate report
runs-on: ubuntu-latest
steps:
Expand All @@ -36,8 +35,12 @@ jobs:
ref: ${{ github.head_ref }}

- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
node-version: '20'
registry-url: https://npm.pkg.github.com
always-auth: true
cache: 'yarn'

- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"name": "Run download-tools.ts",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/scripts/download-tools.ts",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/ts-node",
"runtimeArgs": [],
"args": ["-f", "gdb"]
"runtimeExecutable": "npx",
"runtimeArgs": ["tsx"],
"args": []
},
{
"type": "node",
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
// Ensure editing files in this workspace uses Unix line endings
"files.eol": "\n",
"markdownlint.configFile": ".github/markdownlint.jsonc",
}
10 changes: 10 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@
> npm install -g yarn
```

- Point npm to GitHub Package registry via `~/npmrc`:

```txt
@open-cmsis-pack:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
```

And ensure your GitHub token is present in your environment's
`GITHUB_TOKEN` variable.

## Building

Major parts are platform independent but due to the inclusion of binary tools the resulting
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
},
"scripts": {
"prepare": "yarn run build",
"download-tools": "ts-node scripts/download-tools.ts",
"download-tools": "tsx scripts/download-tools.ts",
"clean": "git clean -f -x ./node_modules ./dist ./coverage ./tools",
"build": "webpack --mode production && yarn lint",
"build:no-lint": "webpack --mode production",
Expand All @@ -95,11 +95,11 @@
"test": "jest --reporters=default --reporters=./node_modules/jest-html-reporter",
"all": "yarn && yarn download-tools && yarn test",
"package": "vsce package --yarn",
"tpip:report": "ts-node scripts/tpip-reporter --header docs/tpip-header.md docs/third-party-licenses.json TPIP.md",
"tpip:report": "tsx scripts/tpip-reporter --header docs/tpip-header.md docs/third-party-licenses.json TPIP.md",
"lint:md": "markdownlint **/*.md -c ./.github/markdownlint.jsonc -i ./node_modules ./dist ./coverage ./tools",
"check:links": "ts-node scripts/check-links.ts -i ./node_modules/** -i ./.github/** -c ./.github/markdown-link-check.jsonc",
"copyright:check": "ts-node scripts/copyright-manager.ts --mode=check --include=src/**/*.ts,scripts/**/*.ts --exclude=**/node_modules/**,coverage/**,dist/**,tools/**",
"copyright:fix": "ts-node scripts/copyright-manager.ts --mode=fix --include=src/**/*.ts,scripts/**/*.ts --exclude=**/node_modules/**,coverage/**,dist/**,tools/**"
"check:links": "tsx scripts/check-links.ts -i ./node_modules/** -i ./.github/** -c ./.github/markdown-link-check.jsonc",
"copyright:check": "tsx scripts/copyright-manager.ts --mode=check --include=src/**/*.ts,scripts/**/*.ts --exclude=**/node_modules/**,coverage/**,dist/**,tools/**",
"copyright:fix": "tsx scripts/copyright-manager.ts --mode=fix --include=src/**/*.ts,scripts/**/*.ts --exclude=**/node_modules/**,coverage/**,dist/**,tools/**"
},
"vsce": {
"yarn": true,
Expand All @@ -109,6 +109,7 @@
"yaml": "^2.8.0"
},
"devDependencies": {
"@open-cmsis-pack/vsce-helper": "^0.1.1",
"@types/fs-extra": "^11.0.4",
"@types/jest": "^30.0.0",
"@types/minimist": "^1.2.5",
Expand Down Expand Up @@ -142,6 +143,7 @@
"ts-jest": "29.4.0",
"ts-loader": "^9.5.2",
"ts-node": "^10.9.2",
"tsx": "^4.20.3",
"type-fest": "^4.41.0",
"typescript": "^5.8.3",
"typescript-eslint": "8.37.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-links.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!npx ts-node
#!npx tsx

/**
* Copyright 2025 Arm Limited
Expand Down
2 changes: 1 addition & 1 deletion scripts/copyright-manager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!npx ts-node
#!npx tsx

/**
* Copyright 2025 Arm Limited
Expand Down
Loading
Loading