feathers-plus / generator-feathers-plus

A Yeoman generator to (re)generate a FeathersJS application supporting both REST and GraphQL architectural concepts and their query languages.

Home Page:https://generator.feathers-plus.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPM start:seed script for TypeScript Node

deskoh opened this issue · comments

Steps to reproduce

  • Tell us what broke. The more detailed the better.

The generated start:seed script when TypeScript is used does not work.

cross-env NODE_ENV=test ts-node --seed --files src/

Expected behavior

Database should be seeded with fake data.

The following NPM script fixes the issue:

cross-env NODE_ENV=test ts-node --files src/ --seed"

Actual behavior

Database is not seeded with fake data seed argument is not passed to node. i.e. process.argv = ['node', 'D:\code\feathers-ts\src'].

System configuration

Windows
TypeScript

Resolved by PR #244

Published as f+/cli 0.8.7 which uses generator v0.8.7