Add prepare script and files field to include build artifacts

This commit is contained in:
uny-dev 2025-03-19 09:29:04 -04:00
parent 64b0c14d7e
commit 4530b3208a

View file

@ -1,13 +1,17 @@
{ {
"name": "luxon-hijri", "name": "luxon-hijri",
"version": "1.0.3", "version": "1.0.4",
"description": "A Hijri date converter based on the Umm al-Qura calendar system, using Luxon for date manipulations.", "description": "A Hijri date converter based on the Umm al-Qura calendar system, using Luxon for date manipulations.",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"prepare": "npm run build",
"test": "jest" "test": "jest"
}, },
"files": [
"dist"
],
"keywords": [ "keywords": [
"hijri", "hijri",
"calendar", "calendar",
@ -34,4 +38,4 @@
"bugs": { "bugs": {
"url": "https://github.com/acamarata/luxon-hijri/issues" "url": "https://github.com/acamarata/luxon-hijri/issues"
} }
} }