Sha256: 0fc108001c862bf47288cef1d94330deeed8a8d71988911f7330b61ede8399b0
Contents?: true
Size: 932 Bytes
Versions: 20
Compression:
Stored size: 932 Bytes
Contents
# frozen_string_literal: true module Script module Layers module Infrastructure module Languages class TypeScriptProjectCreator < ProjectCreator MIN_NODE_VERSION = "14.15.0" NPM_SET_REGISTRY_COMMAND = "npm --userconfig ./.npmrc config set @shopify:registry https://registry.npmjs.com" NPM_SET_ENGINE_STRICT_COMMAND = "npm --userconfig ./.npmrc config set engine-strict true" def self.config_file "package.json" end def setup_dependencies super command_runner.call(NPM_SET_REGISTRY_COMMAND) command_runner.call(NPM_SET_ENGINE_STRICT_COMMAND) if ctx.file_exist?("yarn.lock") ctx.rm("yarn.lock") end if ctx.file_exist?("package-lock.json") ctx.rm("package-lock.json") end end end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems