mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
BREAKING CHANGE: Serverless Components (`@serverless/components`) CLI is no longer integrated with Framework CLI.
16 lines
473 B
JavaScript
Executable File
16 lines
473 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
'use strict';
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const packageJsonPath = path.resolve(__dirname, '../package.json');
|
|
|
|
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
|
|
|
|
packageJson.version = `${packageJson.version}-${process.env.GITHUB_SHA.slice(0, 8)}`;
|
|
packageJson.dependencies['@serverless/dashboard-plugin'] = 'canary';
|
|
|
|
fs.writeFileSync(packageJsonPath, `${JSON.stringify(packageJson, null, 2)}\n`);
|