diff --git a/.changeset/shy-fans-draw.md b/.changeset/shy-fans-draw.md new file mode 100644 index 0000000..4f01053 --- /dev/null +++ b/.changeset/shy-fans-draw.md @@ -0,0 +1,6 @@ +--- +"std": patch +--- + +chore: Add cursor rule config file + \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5abcdc9..d6d7fea 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -31,6 +31,7 @@ jobs: commit: "chore(release): version package" title: "chore(release): version package" publish: pnpm ci:release + version: pnpm changeset:version env: JSREPO_TOKEN: ${{ secrets.JSREPO_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/jsrepo-build-config.json b/jsrepo-build-config.json index 1a4e3fd..bf81a3e 100644 --- a/jsrepo-build-config.json +++ b/jsrepo-build-config.json @@ -1,5 +1,5 @@ { - "$schema": "https://unpkg.com/jsrepo@1.30.0/schemas/registry-config.json", + "$schema": "https://unpkg.com/jsrepo@2.1.0/schemas/registry-config.json", "name": "@ieedan/std", "version": "package", "meta": { @@ -10,6 +10,14 @@ "repository": "https://github.com/ieedan/std", "tags": ["typescript", "std", "utilities"] }, + "configFiles": [ + { + "name": "Cursor Rule", + "expectedPath": "./.cursor/rules", + "path": "./rules/typescript-utility-functions.mdc", + "optional": true + } + ], "dirs": ["./src"], "includeBlocks": [], "includeCategories": [], diff --git a/jsrepo-manifest.json b/jsrepo-manifest.json index 0178a57..f86c2b0 100644 --- a/jsrepo-manifest.json +++ b/jsrepo-manifest.json @@ -1,4 +1,6 @@ { + "name": "@ieedan/std", + "version": "package", "meta": { "authors": ["Aidan Bleser"], "bugs": "https://github.com/ieedan/std/issues", @@ -7,6 +9,14 @@ "repository": "https://github.com/ieedan/std", "tags": ["typescript", "std", "utilities"] }, + "configFiles": [ + { + "name": "Cursor Rule", + "path": "./rules/typescript-utility-functions.mdc", + "expectedPath": "./.cursor/rules", + "optional": true + } + ], "categories": [ { "name": "ts", @@ -278,6 +288,19 @@ "dependencies": [], "devDependencies": [] }, + { + "name": "types", + "directory": "src/ts", + "category": "ts", + "tests": false, + "subdirectory": false, + "list": true, + "files": ["types.ts"], + "localDependencies": [], + "_imports_": {}, + "dependencies": [], + "devDependencies": [] + }, { "name": "url", "directory": "src/ts", diff --git a/package.json b/package.json index 21ec1fa..97b9e1c 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "check:types": "tsc --noEmit", "docs:generate": "typedoc", "build:registry": "jsrepo build", - "ci:release": "pnpm jsrepo publish --verbose && changeset tag" + "ci:release": "pnpm jsrepo publish --verbose && changeset tag", + "changeset:version": "changeset version && pnpm format" }, "devDependencies": { "@biomejs/biome": "1.9.4", @@ -29,9 +30,6 @@ "typedoc-material-theme": "^1.4.0" }, "pnpm": { - "onlyBuiltDependencies": [ - "@biomejs/biome", - "esbuild" - ] + "onlyBuiltDependencies": ["@biomejs/biome", "esbuild"] } } diff --git a/rules/typescript-utility-functions.mdc b/rules/typescript-utility-functions.mdc new file mode 100644 index 0000000..b1572b6 --- /dev/null +++ b/rules/typescript-utility-functions.mdc @@ -0,0 +1,6 @@ +--- +description: +globs: +alwaysApply: true +--- +Before writing a new TypeScript utility check if the @ieedan/std registry has it already and if it does use it instead.