feat(ci): Add Gitea workflows for build and release.
This commit is contained in:
		| @@ -3,6 +3,6 @@ | ||||
|  */ | ||||
| export const commitinfo = { | ||||
|   name: '@git.zone/tsrun', | ||||
|   version: '1.2.49', | ||||
|   version: '1.3.0', | ||||
|   description: 'run typescript programs efficiently' | ||||
| } | ||||
|   | ||||
| @@ -37,6 +37,6 @@ export const runCli = async (pathArg?: string) => { | ||||
|             return prevArg + ' ' + currentArg; | ||||
|           }) | ||||
|         : '' | ||||
|     }` | ||||
|     }`, | ||||
|   ); | ||||
| }; | ||||
|   | ||||
| @@ -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
									
								
							
							
						
						
									
										1
									
								
								ts/paths.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| export const cwd = process.cwd(); | ||||
| @@ -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'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user