skyltmax_config 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.prettierignore +1 -0
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +1 -1
- data/README.md +14 -0
- data/eslint.config.js +12 -1
- data/fixture/.prettierignore +1 -0
- data/fixture/eslint.config.js +4 -0
- data/fixture/package.json +19 -0
- data/fixture/pnpm-lock.yaml +3195 -0
- data/fixture/src/index.ts +1 -0
- data/fixture/src/ui/button.tsx +24 -0
- data/fixture/tsconfig.json +13 -0
- data/lib/skyltmax_config/version.rb +1 -1
- data/package.json +10 -3
- data/pnpm-lock.yaml +1877 -1420
- data/prettier.js +3 -14
- data/scripts/peer-deps/audit.js +132 -0
- data/scripts/peer-deps/install.js +176 -0
- data/tests/check-peers.test.js +76 -0
- data/tests/fixtures/manifest-no-peers.json +3 -0
- data/tests/fixtures/manifest-with-peers.json +6 -0
- data/tests/install-peers.test.js +79 -0
- data/tsconfig.json +1 -0
- metadata +15 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Button } from "./ui/button"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react"
|
|
2
|
+
|
|
3
|
+
type ButtonProps = PropsWithChildren<{ onPress?: () => void }>
|
|
4
|
+
|
|
5
|
+
export function Button({ children, onPress }: ButtonProps) {
|
|
6
|
+
const fallbackLabels: string[] = ["Click me"];
|
|
7
|
+
// Intentional type error: enabled by noUncheckedIndexedAccess from our shared tsconfig.
|
|
8
|
+
const primaryLabel: string = fallbackLabels[1];
|
|
9
|
+
const label = typeof children === "string" ? children : primaryLabel;
|
|
10
|
+
|
|
11
|
+
// This unresolved promise exercises @typescript-eslint/no-floating-promises.
|
|
12
|
+
Promise.resolve("noop");
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<button
|
|
16
|
+
type="button"
|
|
17
|
+
// Intentional Tailwind ordering issue to exercise prettier-plugin-tailwindcss.
|
|
18
|
+
className="text-red-500 flex p-2 bg-blue-200"
|
|
19
|
+
onClick={onPress}
|
|
20
|
+
>
|
|
21
|
+
{label}
|
|
22
|
+
</button>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@signmax/config/typescript",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"jsx": "react-jsx",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"moduleResolution": "Bundler",
|
|
7
|
+
"verbatimModuleSyntax": true,
|
|
8
|
+
"allowImportingTsExtensions": true,
|
|
9
|
+
"noEmit": true,
|
|
10
|
+
"baseUrl": "./src"
|
|
11
|
+
},
|
|
12
|
+
"include": ["src"]
|
|
13
|
+
}
|
data/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signmax/config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,11 +32,15 @@
|
|
|
32
32
|
"./reset.d.ts": "./reset.d.ts",
|
|
33
33
|
"./eslint": "./eslint.js"
|
|
34
34
|
},
|
|
35
|
+
"bin": {
|
|
36
|
+
"signmax-config-peers": "./scripts/peer-deps/install.js"
|
|
37
|
+
},
|
|
35
38
|
"files": [
|
|
36
39
|
"*.js",
|
|
37
40
|
"*.json",
|
|
38
41
|
"*.d.ts",
|
|
39
42
|
"*.yml",
|
|
43
|
+
"scripts/**",
|
|
40
44
|
"lib/**",
|
|
41
45
|
"README.md",
|
|
42
46
|
"LICENSE"
|
|
@@ -49,7 +53,9 @@
|
|
|
49
53
|
"lint": "eslint .",
|
|
50
54
|
"typecheck": "tsc",
|
|
51
55
|
"validate": "run-p -l format lint typecheck",
|
|
52
|
-
"
|
|
56
|
+
"test": "vitest run",
|
|
57
|
+
"postinstall": "node ./scripts/peer-deps/audit.js",
|
|
58
|
+
"bump": "npx npm-check-updates --dep prod,dev,peer,optional --target latest -i"
|
|
53
59
|
},
|
|
54
60
|
"peerDependencies": {
|
|
55
61
|
"@eslint/js": "9.39.1",
|
|
@@ -77,7 +83,8 @@
|
|
|
77
83
|
"devDependencies": {
|
|
78
84
|
"@types/react": "^18.3.0",
|
|
79
85
|
"npm-run-all": "^4.1.5",
|
|
80
|
-
"react": "^18.3.0"
|
|
86
|
+
"react": "^18.3.0",
|
|
87
|
+
"vitest": "4.0.7"
|
|
81
88
|
},
|
|
82
89
|
"prettier": "./prettier.js"
|
|
83
90
|
}
|