Closed malept closed 7 years ago
/cc @kwonoj @paulcbetts typescript
shouldn't be a required peer-dep as lots of people use electron-compile
without using typescript.
/cc @malept Can we pin our electron-compile
version until this is fixed
@MarshallOfSound so previously, typescript
was dependency regardless of someone uses TS or not (https://github.com/teppeis/typescript-simple/blob/master/package.json#L28), this regression comes by now compiler correctly requires compiler optional, just missing correct handling if compiler is really missing.
Compiler behavior should be fixed to work without installation of TS but I still think typescript installation need to be optional instead of requiring it in behind of scene. maybe optionalDep
would be more sense than peerDep
though.
@kwonoj Fair enough, however I think that the change that was made should have been considered breaking. Anyone currently using typescript
will find themselves unable to do so with just a minor bump in this package. Is that correct?
@MarshallOfSound for versioning perspective, I do agree. actually, when I proposed PR (https://github.com/electron/electron-compilers/pull/50) I proposed it with breaking changes.
@MarshallOfSound please review https://github.com/electron/electron-compilers/pull/53, I've added handler also made TS compiler as direct dependency to avoid regression in minor version bump.
I'll create separate PR for making TS compiler as peerDep for major version bump.
Sorry all, I didn't remember that we'd check the version, totally agree that this should be fixed asap
Fixed, thanks Paul.
The commit https://github.com/electron/electron-compilers/commit/ffbd7002b66c0ce9c4d801bdbce7569997b7ad1c introduced a regression. The following repro steps fail with 5.3.0 and 5.3.1 and succeeds with 5.2.5.
Repro steps
electron-forge init something
cd something
electron-forge package
Expected
A package is created for the host platform & arch.
Actual
When
npm install
is run, this is one of the warnings (electron-compilers@5.3.1
is installed):