feat: transition main module to src/index.js
Changed the 'main' field in package.json to point to 'src/index.js' instead of 'lib/index.js'. This update aligns the entry point with the source code to simplify the development process and ensure that the latest features and fixes are readily accessible. The build script remains in place for pre-publication compilation, maintaining compatibility with environments expecting transpiled code. This shift encourages direct use of the source module, facilitating easier debugging and faster iteration during development.
This commit is contained in:
parent
12db2ff24b
commit
9e139d0de4
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
"name": "aframe-click-drag-component",
|
||||
"version": "3.0.1",
|
||||
"description": "Click & Drag component for A-Frame.",
|
||||
"main": "lib/index.js",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
"build-lib": "mkdir -p lib && babel src/index.js -o lib/index.js",
|
||||
"prepublishOnly": "npm run build-lib"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue