feat(ci): Add Gitea workflows for build and release.

This commit is contained in:
2024-10-27 19:11:55 +01:00
parent 61a82f0d03
commit 8f4292f402
12 changed files with 870 additions and 958 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@git.zone/tsrun',
version: '1.2.49',
version: '1.3.0',
description: 'run typescript programs efficiently'
}

View File

@ -37,6 +37,6 @@ export const runCli = async (pathArg?: string) => {
return prevArg + ' ' + currentArg;
})
: ''
}`
}`,
);
};

View File

@ -1,3 +1,4 @@
import * as paths from './paths.js';
import * as plugins from './plugins.js';
import type { CompilerOptions } from 'typescript';
@ -12,6 +13,8 @@ const defaultTsNodeOptions: plugins.tsNode.CreateOptions = {
moduleResolution: <any>'nodenext',
module: <any>'nodenext',
verbatimModuleSyntax: true,
paths: plugins.smartfile.fs.toObjectSync(plugins.path.join(paths.cwd, 'tsconfig.json'))
?.compilerOptions?.paths,
} as CompilerOptions,
esm: true,
skipIgnore: true,
@ -19,5 +22,5 @@ const defaultTsNodeOptions: plugins.tsNode.CreateOptions = {
};
export const { resolve, load, getFormat, transformSource } = plugins.tsNode.createEsmHooks(
plugins.tsNode.register(defaultTsNodeOptions)
plugins.tsNode.register(defaultTsNodeOptions),
) as any;

1
ts/paths.ts Normal file
View File

@ -0,0 +1 @@
export const cwd = process.cwd();

View File

@ -5,9 +5,10 @@ import * as url from 'url';
export { path, url };
// @pushrocks scope
import * as smartfile from '@push.rocks/smartfile';
import * as smartshell from '@push.rocks/smartshell';
export { smartshell };
export { smartfile, smartshell };
// third party scope
import * as tsNode from 'ts-node';