Snapcraft used to accept a list of commands for NPM to run, however in v3.0
npm-run has been removed.
How can I replicate the following in v3.0?
parts: frontend: plugin: nodejs npm-run: [build] stage: [dist]
I have been trying different variations of
parts: frontend: plugin: nodejs # nodejs-package-manager: npm source: frontend stage: [dist] override-build: | ../npm/bin/yarn run build
But with no success
Launching a VM. Updating pull step for defaults (source changed) Skipping pull frontend (already ran) 'mongoose' has dependencies that need to be staged: frontend Skipping pull frontend (already ran) Building frontend Yarn requires Node.js 4.0 or higher to be installed. Failed to run 'override-build': Exit code was 1.