Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow installation via git #574

Open
wants to merge 6 commits into
base: v4.9.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
"eslint:fix": "eslint ./src ./scripts ./bin --fix",
"lint": "pnpm run prettier:check && pnpm run eslint:check && pnpm run cspell:check && pnpm run typescript:check",
"lint:fix": "pnpm run prettier:fix && pnpm run eslint:fix && pnpm run cspell:check && pnpm run typescript:check",
"build:types": "rm -rf dist; tsc --declaration --emitDeclarationOnly --noEmit false -p tsconfig.json --outDir dist; rm -rf dist/scripts; mv dist/src/* dist; rm -rf dist/src; cp src/*.d.ts dist; tsx scripts/create-import-wrappers.mts",
"postinstall": "tsx scripts/build-bin.mts",
"prepublishOnly": "rm -rf dist; tsc --declaration --emitDeclarationOnly --noEmit false -p tsconfig.json --outDir dist; rm -rf dist/scripts; mv dist/src/* dist; rm -rf dist/src; cp src/*.d.ts dist; tsx scripts/create-import-wrappers.mts",
"prepare": "[ ! -e src ] && exit 0 || pnpm run build:types",
"postpublish": "rm -rf *.d.ts; rm -rf dist; npm run build",
"docs": "typedoc src/renderer/replugged.ts --excludeExternals",
"docs:watch": "pnpm run docs --watch"
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/coremods/badges/badge.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Messages } from "@common/i18n";
import React from "@common/react";
import React, { _ } from "@common/react";
import { Clickable, Tooltip } from "@components";
import { getByProps } from "../../modules/webpack";
import { goToOrJoinServer, openExternal } from "../../util";
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/coremods/badges/badges/Booster.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "@common/react";
import React, { _ } from "@common/react";

export default React.memo((props) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/coremods/badges/badges/BugHunter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "@common/react";
import React, { _ } from "@common/react";

export default React.memo((props) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/coremods/badges/badges/Contributor.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "@common/react";
import React, { _ } from "@common/react";

export default React.memo((props) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/coremods/badges/badges/Developer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "@common/react";
import React, { _ } from "@common/react";

export default React.memo((props) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/coremods/badges/badges/EarlyUser.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "@common/react";
import React, { _ } from "@common/react";

export default React.memo((props) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/coremods/badges/badges/Staff.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "@common/react";
import React, { _ } from "@common/react";

export default React.memo((props) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/coremods/badges/badges/Support.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "@common/react";
import React, { _ } from "@common/react";

export default React.memo((props) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/coremods/badges/badges/Translator.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "@common/react";
import React, { _ } from "@common/react";

export default React.memo((props) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
Expand Down
1 change: 1 addition & 0 deletions src/renderer/coremods/badges/badges/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type _ from "react";
import Booster from "./Booster";
import BugHunter from "./BugHunter";
import Contributor from "./Contributor";
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/coremods/installer/AddonEmbed.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Messages } from "@common/i18n";
import { React } from "@common";
import React, { _ } from "@common/react";
import { Button, Clickable, Text, Tooltip } from "@components";
import { Logger } from "@replugged";
import { getByProps } from "@webpack";
Expand Down
1 change: 1 addition & 0 deletions src/renderer/coremods/settings/icons/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import _ from "react";
import Discord from "./Discord";
import GitHub from "./GitHub";
import Link from "./Link";
Expand Down
1 change: 1 addition & 0 deletions src/renderer/modules/common/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ import type React from "react";
import { waitForProps } from "../webpack";

export default await waitForProps<typeof React>("createElement", "useState");
export type { React as _ };
Loading