I am learning a lot about snapcraft and snaps in general, and finished snapping up a text editor via the nodejs plugin.
I then watched This talk by @Wimpress, where he talks about snapping via the electron-builder
.
Now, I am trying to re snap a text editor, and in order to use the electron builder, I would need yarn
Hence, I wrote up a part, to just make sure, I have yarn at build time.
parts:
editor:
plugin: nodejs
node-engine: 6.11.2
node-package-manager: yarn
source: .
stage-packages:[...]
Is there something more I should be doing to have yarn run at build time?
because, I then added a prepare
block to check
prepare: |
yarn --version
and snapcraft says yarn is not recognized