Skip to content

Commit b6d4937

Browse files
committed
update sys-link
1 parent 9df92b6 commit b6d4937

3 files changed

Lines changed: 17 additions & 7 deletions

File tree

eslint.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const browserGlobals = {
3636

3737
export default [
3838
/* 1 - never lint generated / vendor files */
39-
{ ignores: ["**/node_modules/**", "**/dist/**", "**/.next/**", "eslint.config.js", "./packages/core/__tests__/unit/fixtures"] },
39+
{ ignores: ["**/node_modules/**", "**/dist/**", "**/.next/**", "**/.source/**", "eslint.config.js", "./packages/core/__tests__/unit/fixtures"] },
4040

4141
/* 2 - baseline rules */
4242
js.configs.recommended,
@@ -69,6 +69,13 @@ export default [
6969
},
7070
},
7171

72+
{
73+
files: ["examples/demo/next.config.mjs"],
74+
rules: {
75+
"import/no-unresolved": "off",
76+
},
77+
},
78+
7279
/* 5 - TypeScript files (*.ts, *.tsx) */
7380
{
7481
files: ["**/*.ts", "**/*.tsx"],

examples/demo/app/(home)/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function HomePage() {
4848
<WhyFast />
4949
<SocialProof />
5050
<a
51-
href="serbyte.net"
51+
href="https://www.serbyte.net/"
5252
className="absolute bottom-4 left-4 text-fd-muted-foreground text-xs max-lg:left-1/2 max-lg:-translate-x-[50%]">
5353
Built by Serbyte Web Design & Development
5454
</a>
@@ -129,8 +129,8 @@ return (
129129
return (
130130
<div className="theme-light:bg-white
131131
theme-dark:bg-gray-900">
132-
<button onClick={(theme) =>
133-
setTheme(theme === 'light'
132+
<button onClick={(prev) =>
133+
setTheme(prev === 'light'
134134
? 'dark' : 'light')
135135
}>
136136
Toggle

scripts/install-local-tarball.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { readdirSync, statSync } from "node:fs";
1+
import { readdirSync, rmSync, statSync } from "node:fs";
22
import { join } from "node:path";
33
import { execSync } from "node:child_process";
44

@@ -11,13 +11,16 @@ const fixtures = ["packages/core/__tests__/fixtures/next", "packages/core/__test
1111

1212
for (const dir of fixtures) {
1313
const pkgJson = join(dir, "package.json");
14+
rmSync(join(dir, "node_modules"), { recursive: true, force: true });
15+
rmSync(join(dir, "pnpm-lock.yaml"), { force: true });
1416

1517
// 1: Inject the packed tarball
16-
execSync(`pnpm --dir ${dir} add ${join(dist, pkg)}`, { stdio: "inherit" });
18+
execSync(`pnpm --dir ${dir} add --ignore-workspace ${join(dist, pkg)}`, { stdio: "inherit" });
1719

1820
// 2: Install to resolve tree
19-
execSync(`pnpm --dir ${dir} install`, { stdio: "inherit" });
21+
execSync(`pnpm --dir ${dir} install --ignore-workspace`, { stdio: "inherit" });
2022

2123
// 3: Undo changes to package.json
2224
execSync(`git restore ${pkgJson}`, { stdio: "inherit" });
25+
rmSync(join(dir, "pnpm-lock.yaml"), { force: true });
2326
}

0 commit comments

Comments
 (0)