Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

bug(dts-merge): on windows platform #5

Description

@Stradivario
                console.log(` ${process.cwd()}${namespace} --project ${process.cwd()}${projectPath} --out ${process.cwd()}${outPath}`)
                this.logger.log('Typescript merging definitions started in child process...\n');
                this.child = childProcess.spawn(`cmd`, [
		    '/s',
		    ' /c',
            `${this.node_modules}/.bin/rxdi-merge --name ${process.cwd()}${namespace} --project ${process.cwd()}${projectPath} --out ${process.cwd()}${outPath}`,
                ], {cwd});

1543768267912 Typescript merging definitions started in child process...

Error: spawn rxdi-merge ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)

https://github.com/rxdi/deploy/blob/master/app/services/dts-generator/dts-generator.service.js#L53

When trying to run dts-merge on windows platform it brakes because arguments passed to the program are not resolved correctly. Implementation would be to take RAW module dts and put it directly inside the code without spawning child process or to think about how to get paths and pass paths better.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions