New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

versionchange

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

versionchange

Changing GMS Project Version

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Installation

npm -i versionchange

Summary

This is a convenience module that syncs the version number across all platform options of a GMS 2 project.

JS Module Usage

const {versionChange} = require("versionchange");
const newVersion = "1.3.4"; //Use semver format
const yypPath = `path/to/gms2proj.yyp`
versionChange(newVersion,yypPath).then(()=>{
    console.log("All platform versions are changed to", newVersion, "for", yypPath);
});

Note that the module name is all lower case and the function name is camel case.

NPM Script Usage

Add the following entry to your package.json

  "GamePipe": {
    "yyp": "path/to/gms2proj.yyp"
  }

Then use versionChangeAuto.js to sync the version of the package.json to the GMS 2 project by adding node ./node_modules/versionchange/out/versionChangeAuto.js to the npm version or other script.

License

Licensed under MIT

Keywords

yyp

FAQs

Package last updated on 15 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts