File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22'use strict' ;
33
4- const path = require ( 'path' )
5- const { existsSync } = require ( 'fs' )
6- const { mkdir } = require ( 'fs/promises' )
7- const { Command, commandRunner, chalk } = require ( '@feathersjs/cli' )
4+ import path from 'path'
5+ import { existsSync } from 'fs'
6+ import { mkdir } from 'fs/promises'
7+ import { Command , commandRunner , chalk } from '@feathersjs/cli'
88
99const program = new Command ( )
1010const generateApp = commandRunner ( 'app' )
@@ -21,7 +21,7 @@ ${chalk.grey('npm init feathers myapp')}
2121 . action ( async ( name , options ) => {
2222 try {
2323 const cwd = path . join ( process . cwd ( ) , name )
24-
24+
2525 if ( existsSync ( cwd ) ) {
2626 throw new Error ( `Can not create Feathers application, the folder "${ name } " already exists` )
2727 }
Original file line number Diff line number Diff line change 66 "bin" : {
77 "create-feathers" : " ./bin/create-feathers"
88 },
9+ "type" : " module" ,
910 "keywords" : [
1011 " feathers" ,
1112 " feathers-plugin"
2930 "url" : " https://github.com/feathersjs/feathers/issues"
3031 },
3132 "engines" : {
32- "node" : " >= 14 "
33+ "node" : " >= 18 "
3334 },
3435 "files" : [
3536 " CHANGELOG.md" ,
4142 " *.js"
4243 ],
4344 "scripts" : {
44- "test" : " echo \" No tests necessary \" "
45+ "test" : " bin/create-feathers --help "
4546 },
4647 "publishConfig" : {
4748 "access" : " public"
You can’t perform that action at this time.
0 commit comments