@factorialco/gat 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ _Why `gat`?_ The name is an acronym of "GitHub Actions Template Generator" witho
|
|
|
11
11
|
Install the main package and its dependencies using the following command:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm i -D @factorialco/gat typescript ts-node commander
|
|
14
|
+
npm i -D @factorialco/gat typescript ts-node commander @swc/core
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
package/dist/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ const writeFilePromise = (0, util_1.promisify)(fs_1.default.writeFile);
|
|
|
15
15
|
const folder = path_1.default.join(process.cwd(), ".github", "templates");
|
|
16
16
|
const parseFile = async (templateFile) => {
|
|
17
17
|
// NOTE: can we improve this using ts-node or typescript programatically?
|
|
18
|
-
const { stdout } = await execPromise(`npx ts-node ${templateFile}`);
|
|
18
|
+
const { stdout } = await execPromise(`npx ts-node --swc -T ${templateFile}`);
|
|
19
19
|
await writeFilePromise(path_1.default.join(process.cwd(), ".github", "workflows", templateFile.split("/").at(-1).replace(".ts", ".yml")), stdout);
|
|
20
20
|
};
|
|
21
21
|
const cli = new commander_1.Command();
|