Remove types
Brought more confusion that people are assuming Bunny is in a "ready" state
This commit is contained in:
parent
843f6e47bc
commit
bd5a6bbf16
6 changed files with 0 additions and 4848 deletions
|
|
@ -1,29 +0,0 @@
|
|||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2023, Team Vendetta
|
||||
Copyright (c) 2024, pylixonly
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
\source ./dist/index.d.ts
|
||||
\import ./index
|
||||
|
||||
@bunny from BunnyObject {
|
||||
api {
|
||||
commands
|
||||
flux
|
||||
native {
|
||||
fs
|
||||
modules
|
||||
loader
|
||||
}
|
||||
storage
|
||||
assets
|
||||
patcher
|
||||
}
|
||||
managers {
|
||||
plugins
|
||||
themes
|
||||
}
|
||||
metro {
|
||||
filters
|
||||
common
|
||||
}
|
||||
ui {
|
||||
components {
|
||||
discord {
|
||||
Forms
|
||||
Redesign
|
||||
}
|
||||
}
|
||||
alerts
|
||||
color
|
||||
toasts
|
||||
styles
|
||||
settings
|
||||
}
|
||||
utils {
|
||||
constants
|
||||
types
|
||||
logger
|
||||
}
|
||||
debug
|
||||
settings
|
||||
}
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
{
|
||||
"name": "bunny-types",
|
||||
"version": "0.0.9",
|
||||
"description": "Types for Bunny, a mod for Discord's mobile apps",
|
||||
"author": "pylixonly",
|
||||
"publishConfig": {
|
||||
"directory": "dist",
|
||||
"typings": "index.d.ts"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "node prepare.mjs"
|
||||
},
|
||||
"keywords": [
|
||||
"bunny-mod",
|
||||
"discord"
|
||||
],
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"@react-native-clipboard/clipboard": "1.10.0",
|
||||
"@types/chroma-js": "^2.4.0",
|
||||
"@types/lodash": "^4.14.191",
|
||||
"@types/react": "18.2.60",
|
||||
"@types/react-native": "0.72.3",
|
||||
"moment": "2.22.2",
|
||||
"spitroast": "^1.4.2",
|
||||
"type-fest": "^4.12.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@uwu/treetype": "^1.1.0",
|
||||
"dts-bundle-generator": "^9.3.1",
|
||||
"ts-patch": "^3.1.2",
|
||||
"typescript": "^5.3.3"
|
||||
}
|
||||
}
|
||||
4707
packages/bunny-types/pnpm-lock.yaml
generated
4707
packages/bunny-types/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,25 +0,0 @@
|
|||
import * as childProcess from "node:child_process";
|
||||
import { existsSync } from "node:fs";
|
||||
import * as fs from "node:fs/promises";
|
||||
import * as util from "node:util";
|
||||
|
||||
if (existsSync("dist")) {
|
||||
await fs.rm("dist", { recursive: true });
|
||||
}
|
||||
await fs.mkdir("dist");
|
||||
|
||||
const exec = util.promisify(childProcess.exec);
|
||||
await fs.copyFile("package.json", "./dist/package.json");
|
||||
await fs.copyFile("LICENSE", "./dist/LICENSE");
|
||||
|
||||
await exec("pnpm dts-bundle-generator -o dist/object.d.ts --project ../../tsconfig.json ../../src/lib/index.ts --no-check --sort");
|
||||
|
||||
await fs.writeFile("./dist/index.d.ts", `
|
||||
declare global {
|
||||
var bunny: BunnyObject;
|
||||
}
|
||||
|
||||
export type BunnyObject = typeof import("./object");
|
||||
`.trim());
|
||||
|
||||
await exec("pnpm treetype def.tt dist/treetype.d.ts");
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"include": [
|
||||
"dist"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"stripInternal": true
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue