-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
134 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,26 @@ | |
"name": "oldschooljs", | ||
"version": "2.6.0", | ||
"description": "Allows you to interact with the OSRS Hiscores, Wiki, Items, & more.", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"main": "./dist/cjs/index.js", | ||
"module": "./dist/esm/index.js", | ||
"types": "./dist/types/index.d.ts", | ||
"exports": { | ||
".": { | ||
"require": "./dist/cjs/index.js", | ||
"import": "./dist/esm/index.js", | ||
"types": "./dist/types/index.d.ts" | ||
}, | ||
"./dist/*": { | ||
"require": "./dist/cjs/*.js", | ||
"import": "./dist/esm/*.js", | ||
"types": "./dist/types/*.d.ts" | ||
}, | ||
"./dist/util/": { | ||
"require": "./dist/cjs/*.js", | ||
"import": "./dist/esm/*.js", | ||
"types": "./dist/types/util/util.d.ts" | ||
} | ||
}, | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
|
@@ -12,7 +30,7 @@ | |
"scripts": { | ||
"test": "tsc --noEmit -p src && concurrently \"yarn test:lint\" \"yarn test:unit\" \"tsc --noEmit -p test\"", | ||
"test:unit": "vitest run --coverage", | ||
"build": "tsc -p src && tsx scripts/minifyDist.ts", | ||
"build": "tsc -p src && node esbuild.js", | ||
"prepare": "tsx scripts/prepare", | ||
"dev": "yarn prepare && yarn lint && yarn build && yarn test", | ||
"lint": "biome check --write --diagnostic-level=error", | ||
|
@@ -35,6 +53,6 @@ | |
"vitest": "^1.6.0" | ||
}, | ||
"keywords": ["runescape"], | ||
"files": ["dist", "package.json"], | ||
"files": ["dist/", "dist/cjs", "dist/esm", "dist/types"], | ||
"packageManager": "[email protected]" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
import Beginner from "./Beginner"; | ||
import Easy from "./Easy"; | ||
import Elite from "./Elite"; | ||
import Hard from "./Hard"; | ||
import Master from "./Master"; | ||
import Medium from "./Medium"; | ||
import { BeginnerCasket as Beginner } from "./Beginner"; | ||
import { EasyCasket as Easy } from "./Easy"; | ||
import { EliteCasket as Elite } from "./Elite"; | ||
import { HardCasket as Hard } from "./Hard"; | ||
import { MasterCasket as Master } from "./Master"; | ||
import { MediumCasket as Medium } from "./Medium"; | ||
|
||
export const Clues = { | ||
Beginner, | ||
Easy, | ||
Elite, | ||
Hard, | ||
Master, | ||
Medium, | ||
}; | ||
|
||
export * from "./Beginner"; | ||
export * from "./Easy"; | ||
export * from "./Elite"; | ||
export * from "./Hard"; | ||
export * from "./Master"; | ||
export * from "./Medium"; | ||
export { Beginner, Easy, Elite, Hard, Master, Medium }; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
import LootTable from "../../structures/LootTable"; | ||
import { BarbarianAssault } from "./BarbarianAssault"; | ||
import { ChambersOfXeric } from "./ChambersOfXeric"; | ||
import { FishingTrawler } from "./FishingTrawler"; | ||
import { Gauntlet } from "./Gauntlet"; | ||
import Mimic from "./Mimic"; | ||
import Nightmare from "./Nightmare"; | ||
import { Tempoross } from "./Tempoross"; | ||
import { TheatreOfBlood } from "./TheatreOfBlood"; | ||
import Zalcano from "./Zalcano"; | ||
|
||
export { | ||
BarbarianAssault, | ||
ChambersOfXeric, | ||
FishingTrawler, | ||
Gauntlet, | ||
Mimic, | ||
Nightmare, | ||
Tempoross, | ||
TheatreOfBlood, | ||
Zalcano, | ||
}; | ||
export const GrandHallowedCoffin = new LootTable() | ||
.every("Hallowed mark", [8, 10]) | ||
.tertiary(200, "Ring of endurance (uncharged)") | ||
.tertiary(30, "Clue scroll (elite)") | ||
.add("Rune 2h sword") | ||
.add("Rune platebody") | ||
.add("Law rune", [150, 250]) | ||
.add("Blood rune", [150, 250]) | ||
.add("Soul rune", [150, 250]) | ||
.add("Runite bolts", [100, 300]) | ||
.add("Monkfish", [2, 6]) | ||
.add("Sanfew serum(4)", [1, 2]) | ||
.add("Ranarr seed", [1, 2]) | ||
.add("Coins", [17_500, 25_000]); | ||
|
||
export { BarbarianAssault, ChambersOfXeric, FishingTrawler, Gauntlet, Nightmare, Tempoross, Zalcano }; | ||
|
||
export * from "./Mimic"; | ||
export * from "./TheatreOfBlood"; | ||
export type { ChambersOfXericOptions } from "./ChambersOfXeric"; |
Oops, something went wrong.