typescript-for-nodejs-template-by-captain-jack
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "typescript-for-nodejs-template-by-captain-jack", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Fast and Easy starter files to immediately work with TS in Nodejs", | ||
@@ -5,0 +5,0 @@ "scripts": { |
#!/usr/bin/env node | ||
import fs from 'fs/promises' | ||
import { existsSync } from 'fs' | ||
//! SyntaxError: Cannot use import statement outside a module | ||
// import fs from 'fs/promises' | ||
// import { existsSync } from 'fs' | ||
const fs = require('fs/promises') | ||
const {existsSync} = require('fs') | ||
/** | ||
@@ -136,2 +140,6 @@ * The `tsconfig.json` file is a configuration file for the TypeScript compiler. | ||
createReadMeFile() creates a readme.md file in the new project. */ | ||
//! error: import {createStarterTSNode, createStarterPackageJson, createStarterFileAndFolder, createReadMeFile} from './creatorFunctions' | ||
//!SyntaxError: Cannot use import statement outside a module | ||
// import {createStarterTSNode, createStarterPackageJson, createStarterFileAndFolder, createReadMeFile} from './creatorFunctions' | ||
@@ -138,0 +146,0 @@ |
17637
228