File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ rm -rf node_modules/@types/node
1313ln -s /usr/local/lib/node_modules/@types/node node_modules/@types/node
1414
1515cat > __deploy.ts << EOF
16- const fs = require( "fs") ;
16+ import * as fs from "fs";
1717
1818 for (const file of fs.readdirSync("deploy")) {
1919 if (file.match(/\.ts$/)) {
@@ -31,7 +31,7 @@ cat > __deploy.ts <<EOF
3131EOF
3232
3333cat > __deploy_sts.ts << EOF
34- const fs = require( "fs") ;
34+ import * as fs from "fs";
3535
3636 for (const file of fs.readdirSync("deploy")) {
3737 if (file.match(/\.ts$/)) {
5858 cat $file
5959 done > tmp_deploy_ejs.yml
6060 echo " ---"
61- ts-node --compiler-options ' {"module":"CommonJS","esModuleInterop":true,"types":["node"]} ' __deploy.ts
61+ ts-node __deploy.ts
6262 for file in $( ls deploy/* .yml 2> /dev/null) ; do
6363 echo " ---"
6464 grep -q " <%" $file && cat $file
You can’t perform that action at this time.
0 commit comments