Skip to content

Commit

Permalink
WIP: update publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobJingleheimer committed Dec 28, 2024
1 parent c55cf06 commit 405638c
Show file tree
Hide file tree
Showing 3 changed files with 1,082 additions and 11 deletions.
10 changes: 5 additions & 5 deletions build/publish.mts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import path from 'node:path';
import { argv, cwd } from 'node:process';
import { parseArgs } from 'node:util';

import { publish } from 'codemod';
// import { publish } from 'codemod';

import { bundle, outfile } from './bundle.mts';


const {
recipes,
status,
// status,
} = parseArgs({
allowPositionals: true,
args: argv,
Expand All @@ -18,9 +18,9 @@ const {
status: { type: 'boolean' },
},
}).values;
const recipeRelPaths: string[] = recipes?.slice(1, -1).split(' ') ?? [];
const recipeRelPaths: string[] = recipes?.split(' ') ?? [];

if (!status) throw new Error(`Unexpected status: ${status}`);
// if (!status) throw new Error(`Unexpected status: ${status}`);

const rootPath = cwd();

Expand All @@ -31,7 +31,7 @@ for (let r = n - 1; r > -1; r--) {
const recipeAbsPath = path.join(rootPath, recipeRelPath);

publications[r] = bundle(recipeAbsPath)
.then(() => publish(path.join(recipeAbsPath, outfile)));
// .then(() => publish(path.join(recipeAbsPath, outfile)));
}

Promise.allSettled(publications)
Expand Down
12 changes: 6 additions & 6 deletions recipes/correct-ts-specifiers/.codemodrc.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"$schema": "https://codemod-utils.s3.us-west-1.amazonaws.com/configuration_schema.json",
"name": "correct-ts-specifiers",
"version": "1.0.0",
"version": "1.0.2",
"engine": "workflow",
"private": false,
"arguments": [],
"entry": "./src/index.ts",
"meta": {
"git": "https://github.com/nodejs/userland-migrations/tree/main/recipes/correct-ts-specifiers",
"tags": [
"esm",
"import",
"node",
"typescript"
]
}
}
],
"git": "https://github.com/nodejs/userland-migrations/tree/main/recipes/correct-ts-specifiers"
},
"entry": "./src/index.ts"
}
Loading

0 comments on commit 405638c

Please sign in to comment.