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:
Kumi 2024-03-27 18:59:26 +01:00
parent 12db2ff24b
commit 9e139d0de4
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -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"