Skip to content

Commit 8350b67

Browse files
committed
feat: first release
1 parent d1bbfc9 commit 8350b67

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+2774
-439
lines changed

.changeset/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.changeset/lazy-gifts-design.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@zayne-labs/toolkit": patch
3+
---
4+
5+
initial release

.github/workflows/lint-and-type.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup pnpm
2222
uses: pnpm/action-setup@v4
2323
with:
24-
version: 9.8.0
24+
version: 9.9.0
2525

2626
- name: Setup Node.js
2727
uses: actions/setup-node@v4

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm lint-staged

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
"editor.codeActionsOnSave": {
1414
"source.addMissingImports": "never",
1515
"source.organizeImports.biome": "explicit"
16-
}
16+
},
17+
"cSpell.words": ["Abramov"]
1718
}

config/tsconfig.eslint.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"composite": true
66
},
77

8-
"include": ["../*"],
8+
"include": ["../**/*", "../*"],
99
"exclude": ["node_modules"]
1010
}

eslint.config.js

+24-32
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import eslintStylistic from "@stylistic/eslint-plugin";
66
import eslintImportX from "eslint-plugin-import-x";
77
import eslintJsdoc from "eslint-plugin-jsdoc";
88
import eslintPerfectionist from "eslint-plugin-perfectionist";
9-
import eslintSonarJs from "eslint-plugin-sonarjs";
109
import eslintUnicorn from "eslint-plugin-unicorn";
1110
import typegen from "eslint-typegen";
1211
import globals from "globals";
@@ -311,21 +310,14 @@ const eslintConfigArray = augumentedTypegen([
311310
type: "alphabetical",
312311
},
313312
],
314-
"perfectionist/sort-intersection-types": [
315-
"warn",
316-
{
317-
order: "asc",
318-
type: "natural",
319-
},
320-
],
321-
"perfectionist/sort-jsx-props": [
322-
"warn",
323-
{
324-
// ignorePattern: ["src"],
325-
order: "asc",
326-
type: "alphabetical",
327-
},
328-
],
313+
// "perfectionist/sort-jsx-props": [
314+
// "warn",
315+
// {
316+
// // ignorePattern: ["src"],
317+
// order: "asc",
318+
// type: "alphabetical",
319+
// },
320+
// ],
329321
"perfectionist/sort-maps": [
330322
"warn",
331323
{
@@ -354,13 +346,13 @@ const eslintConfigArray = augumentedTypegen([
354346
type: "alphabetical",
355347
},
356348
],
357-
"perfectionist/sort-union-types": [
358-
"warn",
359-
{
360-
order: "asc",
361-
type: "alphabetical",
362-
},
363-
],
349+
// "perfectionist/sort-union-types": [
350+
// "warn",
351+
// {
352+
// order: "asc",
353+
// type: "alphabetical",
354+
// },
355+
// ],
364356
"perfectionist/sort-variable-declarations": [
365357
"warn",
366358
{
@@ -447,15 +439,15 @@ const eslintConfigArray = augumentedTypegen([
447439
},
448440
},
449441

450-
// == Sonarjs Rules (Optional)
451-
{ ...eslintSonarJs.configs.recommended, name: "sonarjs/recommended" },
452-
{
453-
name: "zayne/sonarjs",
454-
rules: {
455-
"sonarjs/no-duplicate-string": "off",
456-
"sonarjs/prefer-immediate-return": "off",
457-
},
458-
},
442+
// // == Sonarjs Rules (Optional)
443+
// { ...eslintSonarJs.configs.recommended, name: "sonarjs/recommended" },
444+
// {
445+
// name: "zayne/sonarjs",
446+
// rules: {
447+
// "sonarjs/no-duplicate-string": "off",
448+
// "sonarjs/prefer-immediate-return": "off",
449+
// },
450+
// },
459451
]);
460452

461453
export default eslintConfigArray;

lint-staged.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
22
"*.{js,ts,jsx,tsx}": () => "pnpm test:lint",
33
"*.{ts,tsx}": () => "pnpm test:check-types",
4-
"package.json": ["pnpm test:publint", "pnpm test:attw"],
4+
"package.json": ["pnpm test:publint"],
55
};

package.json

+53-33
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,111 @@
11
{
2-
"name": "[*]",
2+
"name": "@zayne-labs/toolkit",
33
"version": "0.0.0",
44
"type": "module",
5-
"description": "[*]",
5+
"description": "A collection of utility functions, types and composables used by my other projects. Nothing too fancy but can be useful.",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/[*].git"
8+
"url": "https://github.com/zayne-labs/toolkit.git"
99
},
10-
"main": "./dist/esm/min/index.js",
11-
"module": "./dist/esm/min/index.js",
12-
"types": "./dist/esm/min/index.d.ts",
13-
"homepage": "https://github.com/[*]#readme",
10+
"main": "./dist/min/core/index.js",
11+
"module": "./dist/min/core/index.js",
12+
"types": "./dist/min/core/index.d.ts",
13+
"homepage": "https://github.com/zayne-labs/toolkit#readme",
1414
"bugs": {
15-
"url": "https://github.com/[*]/issues"
15+
"url": "https://github.com/zayne-labs/toolkit/issues"
1616
},
1717
"license": "MIT",
18-
"author": "[*]",
18+
"author": "Ryan Zayne",
1919
"scripts": {
20+
"prepare": "husky",
2021
"test:check-types": "tsc --pretty --incremental -p tsconfig.json",
2122
"test:format": "prettier --cache --write .",
2223
"test:lint": "eslint src/**/*.ts --cache --max-warnings 0 --report-unused-disable-directives",
2324
"test:size": "size-limit",
2425
"test:publint": "publint --strict .",
25-
"test:attw": "attw --pack . --exclude-entrypoints utils",
26+
"test:attw": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
2627
"test:release": "pkg-pr-new publish",
2728
"build": "tsup",
2829
"build:dev": "tsup --watch",
29-
"build:test": "concurrently --prefix-colors \"yellow.bold,#7da4f8.bold,magenta\" --names PUBLINT,TSUP,ATTW 'pnpm:test:publint' 'pnpm:build:dev' 'pnpm:test:attw'",
30+
"build:test": "concurrently --prefix-colors \"yellow.bold,#7da4f8.bold,magenta\" --names PUBLINT,TSUP,ATTW 'pnpm:test:publint' 'pnpm:build:dev'",
3031
"version-package": "changeset version",
3132
"release": "changeset publish",
3233
"inspect:eslint-config": "pnpx @eslint/config-inspector@latest"
3334
},
3435
"devDependencies": {
3536
"@arethetypeswrong/cli": "^0.15.4",
3637
"@changesets/cli": "^2.27.7",
37-
"@eslint/js": "^9.9.0",
38+
"@eslint/js": "^9.9.1",
3839
"@size-limit/esbuild-why": "^11.1.4",
3940
"@size-limit/preset-small-lib": "^11.1.4",
40-
"@stylistic/eslint-plugin": "^2.6.4",
41+
"@stylistic/eslint-plugin": "^2.7.2",
4142
"@zayne-labs/tsconfig": "^0.1.1",
4243
"concurrently": "^8.2.2",
43-
"eslint": "^9.9.0",
44-
"eslint-plugin-import-x": "^3.1.0",
44+
"eslint": "^9.9.1",
45+
"eslint-plugin-import-x": "^4.1.1",
4546
"eslint-plugin-jsdoc": "^50.2.2",
46-
"eslint-plugin-perfectionist": "^3.2.0",
47-
"eslint-plugin-sonarjs": "^1.0.4",
47+
"eslint-plugin-perfectionist": "^3.3.0",
4848
"eslint-plugin-unicorn": "^55.0.0",
4949
"eslint-typegen": "^0.3.1",
5050
"globals": "^15.9.0",
51-
"husky": "^9.1.4",
52-
"lint-staged": "^15.2.9",
53-
"pkg-pr-new": "^0.0.20",
51+
"husky": "^9.1.5",
52+
"lint-staged": "^15.2.10",
53+
"pkg-pr-new": "^0.0.23",
5454
"prettier": "^3.3.3",
5555
"publint": "^0.2.10",
5656
"size-limit": "^11.1.4",
5757
"terser": "^5.31.6",
5858
"tsup": "^8.2.4",
5959
"typescript": "5.5.4",
60-
"typescript-eslint": "^8.1.0"
60+
"typescript-eslint": "^8.3.0"
61+
},
62+
"peerDependencies": {
63+
"@types/react": ">=18.0.0",
64+
"react": ">=18.0.0",
65+
"sonner": ">=1.5.0"
66+
},
67+
"peerDependenciesMeta": {
68+
"@types/react": {
69+
"optional": true
70+
},
71+
"react": {
72+
"optional": true
73+
},
74+
"sonner": {
75+
"optional": true
76+
}
6177
},
6278
"publishConfig": {
6379
"access": "public",
6480
"registry": "https://registry.npmjs.org/",
6581
"provenance": true
6682
},
6783
"exports": {
68-
".": {
69-
"import": "./dist/esm/min/index.js",
70-
"require": "./dist/cjs/index.cjs"
71-
},
72-
"./[*]": {
73-
"import": "./dist/esm/min/[*]/index.js",
74-
"require": "./dist/cjs/[*]/index.cjs"
75-
}
84+
".": "./dist/min/core/index.js",
85+
"./react": "./dist/min/react/index.js",
86+
"./type-helpers": "./dist/min/type-helpers/index.js"
7687
},
7788
"files": [
7889
"dist"
7990
],
8091
"size-limit": [
8192
{
82-
"path": "./src/[*]",
83-
"limit": "[*] kb"
93+
"path": "./src/core/index.ts",
94+
"limit": "3 kb"
95+
},
96+
{
97+
"path": "./src/react/index.ts",
98+
"limit": "4.5 kb"
99+
},
100+
{
101+
"path": "./src/type-helpers/index.ts",
102+
"limit": "500 b"
84103
}
85104
],
86105
"sideEffects": false,
87106
"keywords": [],
107+
"packageManager": "[email protected]",
88108
"engines": {
89-
"node": ">=[*].x"
109+
"node": ">=18.x"
90110
}
91-
}
111+
}

0 commit comments

Comments
 (0)