feathers-plus / cli

FeathersJS CLI supporting both REST and GraphQL architectural concepts and their query languages.
https://generator.feathers-plus.com/
Other
43 stars 7 forks source link

Generated TypeScript with custom sources folder fails to "npm start" (again) #38

Closed iva2k closed 3 years ago

iva2k commented 5 years ago

Steps to reproduce

npm install -g @feathers-plus/cli
mkdir feathers-app
cd feathers-app
feathers-plus generate options
# choose all defaults, except "Generate TypeScript code?" Yes

feathers-plus generate app
# choose all defaults, except enter different folder for source files, e.g. 'server'

Grep for 'src'

Expected behavior

Should only find couple of legit 'src' keywords.

Actual behavior

Found 'src' where 'server' is expected:

package.json:

    "start:seed": "cross-env NODE_ENV= ts-node --files src/ --seed",

tsconfig.json:

    "rootDir": "./src",                    /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */

Module versions (especially the part that's not working): @feathers-plus/cli@0.8.10