MCPcopy Index your code
hub / github.com/apify/crawlee / handler

Method handler

packages/cli/src/commands/RunProjectCommand.ts:31–40  ·  view source on GitHub ↗

* @inheritDoc

(args: ArgumentsCamelCase<RunProjectArgs>)

Source from the content-addressed store, hash-verified

29 * @inheritDoc
30 */
31 async handler(args: ArgumentsCamelCase<RunProjectArgs>) {
32 const env = { ...process.env };
33
34 if (!args.purge) {
35 env.CRAWLEE_PURGE_ON_START = '0';
36 }
37
38 // TODO detect the right package manager (e.g. based on package.json's `packageManager` field)
39 execSync(`npm run ${args.script}`, { stdio: 'inherit', env });
40 }
41}

Callers 1

handleMethod · 0.45

Calls 1

execSyncFunction · 0.85

Tested by

no test coverage detected