spectatora 8440d151d3
Convert build scripts from CommonJS to ES Modules (#416)
* Convert build scripts from CommonJS to ES Modules

- Convert all eng/*.js files to ES Modules (.mjs)
- Update package.json scripts to reference .mjs files
- Fix ERR_REQUIRE_ESM error with vfile v6.0.3
- Add __dirname polyfills for ES Modules

* completing the migration of all files to es modules

---------

Co-authored-by: Lyubomir Filipov <lyubomir.filipov@jakala.com>
Co-authored-by: Aaron Powell <me@aaron-powell.com>
2025-11-18 11:23:51 +11:00

64 lines
1.5 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "npm install",
"type": "shell",
"command": "npm ci",
"problemMatcher": [],
"group": "build",
"detail": "Installs all npm dependencies."
},
{
"label": "generate-readme",
"type": "shell",
"command": "npm run build",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Generates the README.md file using npm build run-script.",
"dependsOn": "npm install"
},
{
"label": "validate-collections",
"type": "shell",
"command": "npm run collection:validate",
"problemMatcher": [],
"group": "build",
"detail": "Validates all collection manifest files.",
"dependsOn": "npm install"
},
{
"label": "create-collection",
"type": "shell",
"command": "npm run collection:create",
"args": [
"--id",
"${input:collectionId}",
"--tags",
"${input:tags}"
],
"problemMatcher": [],
"group": "build",
"detail": "Creates a new collection manifest template.",
"dependsOn": "npm install"
}
],
"inputs": [
{
"id": "collectionId",
"description": "Collection ID (lowercase, hyphen-separated)",
"default": "my-collection",
"type": "promptString"
},
{
"id": "tags",
"description": "Comma separated list of tags",
"default": "tag1,tag2",
"type": "promptString"
}
]
}