This repository was archived by the owner on Apr 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ jobs:
1010 if : " !contains(github.event.head_commit.message, 'skip ci')"
1111 env : { NODE_OPTIONS: '--max-old-space-size=3200' }
1212 steps :
13- - { uses: actions/checkout@v2 , with: { persist-credentials: true } }
14- - { uses: actions/setup-node@v2 , with: { node-version: 16, cache: 'yarn' } }
13+ - { uses: actions/checkout@v3 , with: { persist-credentials: true } }
14+ - { uses: actions/setup-node@v3 , with: { node-version: 16, cache: 'yarn' } }
1515
1616 # Cache for npm/npx in ~/.npm
17- - uses : actions/cache@v2
17+ - uses : actions/cache@v3
1818 with :
1919 path : ~/.npm
2020 key : npm-v1-${{ runner.os }}
Original file line number Diff line number Diff line change 1010 "@naturalcycles/nodejs-lib" : " ^12.8.0" ,
1111 "chalk" : " ^4.0.0" ,
1212 "dotenv" : " ^16.0.0" ,
13- "esbuild" : " ^0.14.0" ,
14- "esbuild-register" : " ^3.1.2" ,
1513 "loud-rejection" : " ^2.2.0" ,
1614 "ts-node" : " ^10.0.0" ,
1715 "typescript" : " ^4.0.2"
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import * as c from 'chalk'
1111
1212const projectDir = path . join ( __dirname , '../..' )
1313const cfgDir = `${ projectDir } /cfg`
14- const { CLI_DEBUG , TSN_ESBUILD } = process . env
14+ const { CLI_DEBUG } = process . env
1515
1616try {
1717 main ( )
@@ -59,18 +59,19 @@ function main(): void {
5959 require ( 'loud-rejection/register' )
6060 require ( 'dotenv/config' )
6161
62- if ( TSN_ESBUILD ) {
63- const { register } = require ( 'esbuild-register/dist/node' )
64- register ( {
65- tsconfigRaw : fs . readFileSync ( projectTsconfigPath , 'utf8' ) ,
66- } )
67- } else {
68- const tsnode = require ( 'ts-node' )
69- tsnode . register ( {
70- transpileOnly : true ,
71- project : projectTsconfigPath ,
72- } )
73- }
62+ // Esbuild support currently disabled
63+ // if (TSN_ESBUILD) {
64+ // const { register } = require('esbuild-register/dist/node')
65+ // register({
66+ // tsconfigRaw: fs.readFileSync(projectTsconfigPath, 'utf8'),
67+ // })
68+ // }
69+
70+ const tsnode = require ( 'ts-node' )
71+ tsnode . register ( {
72+ transpileOnly : true ,
73+ project : projectTsconfigPath ,
74+ } )
7475
7576 if ( fs . existsSync ( `./node_modules/tsconfig-paths` ) ) {
7677 // ok, for the `paths` it works to load from the root `tsconfig` too
You can’t perform that action at this time.
0 commit comments