Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager"). #8

Closed
vzhukovs opened this issue Jan 8, 2020 · 0 comments
Closed

Comments

@vzhukovs
Copy link
Contributor

vzhukovs commented Jan 8, 2020

There is a problem between build theia-plugin-packager on version 1.21.0 and 1.21.1:

Logs from using yarn 1.21.0

vlad@MacBook-Pro-15-Vlad theia-plugin-packager % yarn
yarn install v1.21.0
[1/4] 🔍  Resolving packages...
success Already up-to-date.
$ yarn run clean && yarn run build
yarn run v1.21.0
$ rimraf dist
✨  Done in 0.36s.
yarn run v1.21.0
$ yarn run compile && yarn run format-code && yarn run tslint-fix && yarn run test
$ tsc && chmod +x dist/index.js
$ tsfmt -r
$ tslint --fix --project .
$ jest
 PASS  tests/assembly/assembly.spec.ts
(node:76677) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
 PASS  tests/zip/zip.spec.ts
 PASS  tests/exec.spec.ts
 PASS  tests/yarn/yarn.spec.ts
 PASS  tests/validate/validate.spec.ts
 PASS  tests/step/step.spec.ts
 PASS  tests/zip/zip-mock.spec.ts
 PASS  tests/logger.spec.ts
 PASS  tests/step/steps-flow.spec.ts
 PASS  tests/cli-error.spec.ts
---------------|----------|----------|----------|----------|-------------------|
File           |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
---------------|----------|----------|----------|----------|-------------------|
All files      |      100 |    98.67 |      100 |      100 |                   |
 assembly.ts   |      100 |      100 |      100 |      100 |                   |
 cli-error.ts  |      100 |      100 |      100 |      100 |                   |
 command.ts    |      100 |      100 |      100 |      100 |                   |
 logger.ts     |      100 |      100 |      100 |      100 |                   |
 step.ts       |      100 |      100 |      100 |      100 |                   |
 steps-flow.ts |      100 |      100 |      100 |      100 |                   |
 validate.ts   |      100 |      100 |      100 |      100 |                   |
 yarn.ts       |      100 |    97.62 |      100 |      100 |               154 |
 zip.ts        |      100 |      100 |      100 |      100 |                   |
---------------|----------|----------|----------|----------|-------------------|

Test Suites: 10 passed, 10 total
Tests:       40 passed, 40 total
Snapshots:   0 total
Time:        3.279s
Ran all test suites.
✨  Done in 10.69s.
✨  Done in 12.15s.

Logs from using yarn 1.21.1

vlad@MacBook-Pro-15-Vlad theia-plugin-packager % yarn
yarn install v1.21.1
warning package.json: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
[1/4] 🔍  Resolving packages...
success Already up-to-date.
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
$ yarn run clean && yarn run build
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
yarn run v1.21.1
warning package.json: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
$ rimraf dist
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
✨  Done in 0.36s.
yarn run v1.21.1
warning package.json: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
$ yarn run compile && yarn run format-code && yarn run tslint-fix && yarn run test
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning package.json: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
$ tsc && chmod +x dist/index.js
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning package.json: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
$ tsfmt -r
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning package.json: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
$ tslint --fix --project .
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning package.json: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
$ jest
warning @theia/[email protected]: Invalid bin entry for "theia:plugin" (in "@theia/plugin-packager").
 PASS  tests/assembly/assembly.spec.ts
(node:76092) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
 PASS  tests/zip/zip.spec.ts
 PASS  tests/yarn/yarn.spec.ts
 PASS  tests/exec.spec.ts
 PASS  tests/validate/validate.spec.ts
 PASS  tests/zip/zip-mock.spec.ts
 PASS  tests/step/steps-flow.spec.ts
 PASS  tests/step/step.spec.ts
 PASS  tests/logger.spec.ts
 PASS  tests/cli-error.spec.ts
---------------|----------|----------|----------|----------|-------------------|
File           |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
---------------|----------|----------|----------|----------|-------------------|
All files      |      100 |    98.67 |      100 |      100 |                   |
 assembly.ts   |      100 |      100 |      100 |      100 |                   |
 cli-error.ts  |      100 |      100 |      100 |      100 |                   |
 command.ts    |      100 |      100 |      100 |      100 |                   |
 logger.ts     |      100 |      100 |      100 |      100 |                   |
 step.ts       |      100 |      100 |      100 |      100 |                   |
 steps-flow.ts |      100 |      100 |      100 |      100 |                   |
 validate.ts   |      100 |      100 |      100 |      100 |                   |
 yarn.ts       |      100 |    97.62 |      100 |      100 |               154 |
 zip.ts        |      100 |      100 |      100 |      100 |                   |
---------------|----------|----------|----------|----------|-------------------|

Test Suites: 10 passed, 10 total
Tests:       40 passed, 40 total
Snapshots:   0 total
Time:        3.121s
Ran all test suites.
✨  Done in 10.41s.
✨  Done in 11.86s.

If line package.json#L8 is removed, then build will be successful without any warnings, but there will be only one binary from two desirable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant