@cocos/creator-3d-types

This folder is used to publish @cocos/creator-3d-types NPM package, a package cotaining TypeScript declaration files for Cocos Creator 3D.

Usage no npm install needed!

<script type="module">
  import cocosCreator3dTypes from 'https://cdn.skypack.dev/@cocos/creator-3d-types';
</script>

README

This folder is used to publish @cocos/creator-3d-types NPM package, a package cotaining TypeScript declaration files for Cocos Creator 3D.


Note, before you first publish, you may need to run following command to setup the NPM access token:

> npm config set '//registry.npmjs.org/:_authToken' '<the-access-token>'

To retrieve the access token, contact to the Cocos team.


When update is required, build it first(at parent directory):

> npm run build-for-publish

Please ensure yourself that there is no build error occurs.

Then, change the package version and publish it:

> npm publish