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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "setup-xc-action",
"version": "1.0.1",
"description": "GitHub Action to setup Microchip XC compilers",
"type": "module",
"main": "dist/index.js",
"scripts": {
"build": "ncc build src/main.ts -m --no-source-map-register --license licenses.txt",
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ export async function run(): Promise<void> {
}

// Only run if this file is being executed directly (not imported for testing)
if (require.main === module) {
const isMain = import.meta.url === new URL(process.argv[1], 'file:').href
if (isMain) {
run()
}
3 changes: 2 additions & 1 deletion tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"include": ["src/**/*", "__tests__/**/*"],
"exclude": ["node_modules"],
"compilerOptions": {
"types": ["node", "vitest/globals"]
"types": ["node", "vitest/globals"],
"rootDir": "."
}
}

10 changes: 6 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"target": "ES2021",
"module": "commonjs",
"lib": ["ES2021"],
"target": "ES2022",
"module": "nodenext",
"moduleResolution": "nodenext",
"lib": ["ES2022"],
"outDir": "./lib",
"rootDir": "./src",
"strict": true,
Expand All @@ -13,7 +14,8 @@
"resolveJsonModule": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true
"sourceMap": true,
"verbatimModuleSyntax": false
},
"include": ["src/**/*"],
"exclude": ["node_modules", "__tests__"]
Expand Down