Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 628 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 628 Bytes

PlayCanvas Codemods

This repo contains any codemods to help with migration of PlayCanvas specific code.

The codemods use jscodeshift and are intended to run with codemod or the codemod vscode extension.

Getting started

In most cases you can run a codemod over a file using the following

npx codemod [codemod-name] -i "./your-file.js"

Available codemods

  • esm-script - codemod for migrating older pc.createScript() scripts to their ESM equivalent.