43 lines
1.3 KiB
JSON
43 lines
1.3 KiB
JSON
{
|
|
"name": "convert-to-swc",
|
|
"factory": "./src/generators/convert-to-swc/convert-to-swc#convertToSwcGenerator",
|
|
"schema": {
|
|
"$schema": "http://json-schema.org/schema",
|
|
"$id": "NxTypescriptLibrary",
|
|
"cli": "nx",
|
|
"title": "Convert a TSC library to SWC",
|
|
"description": "Convert a TSC library to SWC.",
|
|
"type": "object",
|
|
"examples": [
|
|
{
|
|
"command": "nx g swc mylib",
|
|
"description": "Convert `libs/myapp/mylib` to SWC."
|
|
}
|
|
],
|
|
"properties": {
|
|
"project": {
|
|
"type": "string",
|
|
"description": "Library name.",
|
|
"$default": { "$source": "argv", "index": 0 },
|
|
"x-prompt": "What name would you like to use for the library?",
|
|
"pattern": "^[a-zA-Z].*$"
|
|
},
|
|
"targets": {
|
|
"type": "array",
|
|
"description": "List of targets to convert.",
|
|
"items": { "type": "string", "description": "Target to convert." },
|
|
"default": ["build"]
|
|
}
|
|
},
|
|
"required": ["project"],
|
|
"presets": []
|
|
},
|
|
"aliases": ["swc"],
|
|
"x-type": "library",
|
|
"description": "Convert a TypeScript library to compile with SWC.",
|
|
"implementation": "/packages/js/src/generators/convert-to-swc/convert-to-swc#convertToSwcGenerator.ts",
|
|
"hidden": false,
|
|
"path": "/packages/js/src/generators/convert-to-swc/schema.json",
|
|
"type": "generator"
|
|
}
|