fix(parser): export stuff in an index.ts file
All checks were successful
Actions / Build and Push Documentation (push) Successful in 15s
All checks were successful
Actions / Build and Push Documentation (push) Successful in 15s
This commit is contained in:
parent
b31af94e3d
commit
90fa53990a
2 changed files with 20 additions and 3 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
17
packages/parser/src/index.ts
Normal file
17
packages/parser/src/index.ts
Normal 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";
|
Reference in a new issue