From f1595ed7a2fa583e61a5f85ec8e01fc9f713357f Mon Sep 17 00:00:00 2001 From: Kevin Danielsen <53810762+dekode-kevin@users.noreply.github.com> Date: Tue, 8 Nov 2022 09:37:13 +0100 Subject: [PATCH] FEATURE: Update the info about requiring package into composer (#6) * FEATURE: Update the info about requiring package into composer * Bump version number --- lib/scaffold.js | 6 ++---- package.json | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/scaffold.js b/lib/scaffold.js index b7951c0..96b1c36 100644 --- a/lib/scaffold.js +++ b/lib/scaffold.js @@ -65,10 +65,8 @@ module.exports = async ( ); info( '' ); - info( 'Remember to install the new plugin with composer. Add:' ); - code( ` "${ namespace }/block-${ slug }": "@dev"` ); - info( 'To your composer.json-file, and run' ); - code( ' composer update' ); + info( 'Remember to install the new plugin with composer. Run:' ); + code( ` composer require ${ namespace }/block-${ slug }:~1.0.0` ); info( 'To get started' ); info( '' ); diff --git a/package.json b/package.json index 3897c08..3249b80 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dekode/create-project-base-block", - "version": "1.1.0", + "version": "1.2.0", "description": "Generates PHP, JS and CSS code for registering a block for a WordPress plugin.", "author": "Dekode Interaktiv AS", "license": "GPL-2.0-or-later",