Open spyke01 opened 7 years ago
When I run the bump it successfully bumps the version in the package but other items relying on the version get undefined instead of a version number.
Here's my bump config:
// Handle updating the version number bump: { options: { files: ['package.json'], updateConfigs: ['pkg'], commit: false, push: false } },
Here's the code that I'm using to pull the updated pkg item
'string-replace': { version: { files: { 'dist/includes/constants.php': 'includes/constants.php', }, options: { replacements: [{ pattern: /{{ VERSION }}/g, replacement: grunt.config.get('pkg.version') }] } } },
Any idea what's happening here?
Hi,
try to get pkg.version like this grunt.config('pkg.version')
grunt.config('pkg.version')
I still get undefined afterwards.
Whats your config for setting the pkg version?
When I run the bump it successfully bumps the version in the package but other items relying on the version get undefined instead of a version number.
Here's my bump config:
Here's the code that I'm using to pull the updated pkg item
Any idea what's happening here?