fix(parser): export stuff in an index.ts file
All checks were successful
Actions / Build and Push Documentation (push) Successful in 15s

This commit is contained in:
cswimr 2025-02-11 19:20:35 -06:00
parent b31af94e3d
commit 90fa53990a
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
2 changed files with 20 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{
"name": "@packwizjs/parser",
"module": "src/parser.ts",
"version": "1.0.3",
"module": "src/index.ts",
"version": "1.0.4",
"type": "module",
"description": "A simple library for parsing Packwiz TOML files",
"author": {
@ -33,7 +33,7 @@
},
"exports": {
".": {
"import": "./src/parser.ts"
"import": "./src/index.ts"
}
}
}

View file

@ -0,0 +1,17 @@
export { Resource } from "./resource";
export {
parsePackwiz,
Packwiz,
type PackwizIndex,
type PackwizVersions,
type Metafile,
IndexFileEntry,
} from "./parser";
export {
UrlProvider,
ModrinthProvider,
GitHubProvider,
CurseForgeProvider,
} from "./provider";
export { Side, isValidSide } from "./enums/side";
export { HashFormat, isValidHashFormat } from "./enums/hash-format";