lib/sewing_kit/webpack/manifest.rb in sewing_kit-0.27.2 vs lib/sewing_kit/webpack/manifest.rb in sewing_kit-0.27.3

- old
+ new

@@ -4,28 +4,9 @@ module SewingKit module Webpack # Webpack manifest loading, caching & entry point retrieval class Manifest - # Raised if the node sewing-kit isn't installed/runnable. - class NodeSewingKitNotRunnable < StandardError - def initialize(mode, cause) - env_message = if 'production' == mode - "\nIf this is a container build, try:\n" \ - " - Adding `YARN_PRODUCTION=false` to your pipeline's environment variables\n" \ - " - Adding the node buildpack: https://github.com/heroku/heroku-buildpack-nodejs" - else - "Try `yarn add --dev @shopify/sewing-kit`" - end - - super( - "Could not fetch manifest because node sewing-kit is not runnable. " \ - "#{env_message}\n" \ - "Original error #{cause}" - ) - end - end - class NodeSewingKitManifestMissing < StandardError def initialize(mode, node_error_message) env_message = if 'production' == mode "\nIf this is a container build:\n" \ " - Verify that sewing_kit compilation succeeded before deployment\n" \