moleculer-template-project-typescript icon indicating copy to clipboard operation
moleculer-template-project-typescript copied to clipboard

fix npm args problem in package script

Open moonrailgun opened this issue 4 years ago • 0 comments
trafficstars

With some problem, npm script will have some weird behaviour in wildcard.

For example: dir:

├── README.md
├── gateway.service.ts
├── test.service.ts
└── user
    └── users.service.ts

process with npm npm run dev => services/user/users.service.ts process origin script ts-node ./node_modules/moleculer/bin/moleculer-runner.js --hot --repl --config moleculer.config.ts 'services/**/*.service.ts' => services/gateway.service.ts services/test.service.ts services/user/users.service.ts

add a single quotes to ensure pass origin glob string to runner.js self. without external environment

image

moonrailgun avatar Jun 23 '21 04:06 moonrailgun