bin/create-action.js
function createPackageJson (name) {
  const { version, devDependencies } = require('../package.json')
  return {
    name,
    private: true,
    main: 'index.js',
    scripts: {
      start: 'node ./index.js',
      test: 'jest'
    },
    dependencies: {
      'actions-toolkit': `^${version}`
    },
    devDependencies: {
      jest: devDependencies.jest
    }
  }
}
function createPackageJson (name) {
  const { version, devDependencies } = require('../package.json')
  return {
    name,
    private: true,
    main: 'index.js',
    scripts: {
      start: 'node ./index.js',
      test: 'jest'
    },
    dependencies: {
      'actions-toolkit': `^${version}`
    },
    devDependencies: {
      jest: devDependencies.jest
    }
  }
}
function createPackageJson ( name ) { const { version , devDependencies } = require ( '../package.json' ) return { name , private : true , main : 'index.js' , scripts : { start : 'node ./index.js' , test : 'jest' } , dependencies : { 'actions-toolkit' : ` ${ version } ` } , devDependencies : { jest : devDependencies . jest } } }
Creates a `package.json` object with the latest version
of `actions-toolkit` ready to be installed.

@param {string} name The action package name.
@returns {object} The `package.json` contents.
Creates a package . json object with the latest version of actions - toolkit ready to be installed .