@adbayb/stack 0.0.0-next-5dd260c → 0.0.0-next.d8e717b

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.
Files changed (82) hide show
  1. package/README.md +4 -4
  2. package/bin/index.js +2 -4
  3. package/configs/{prettier → oxfmt}/README.md +6 -14
  4. package/configs/oxfmt/index.ts +41 -0
  5. package/configs/{eslint → oxlint}/README.md +4 -4
  6. package/configs/oxlint/index.ts +319 -0
  7. package/configs/typescript/index.json +1 -7
  8. package/dist/configs/oxfmt.d.ts +32 -0
  9. package/dist/configs/oxfmt.js +37 -0
  10. package/dist/configs/oxlint.d.ts +273 -0
  11. package/dist/configs/oxlint.js +325 -0
  12. package/dist/index.js +819 -779
  13. package/package.json +44 -51
  14. package/templates/multi-projects/.github/renovate.json +0 -3
  15. package/templates/multi-projects/.github/workflows/continuous_delivery.yml +8 -14
  16. package/templates/multi-projects/.github/workflows/conventional_commit.yml +1 -1
  17. package/templates/multi-projects/.github/workflows/dependency_changelog.yml +1 -1
  18. package/templates/multi-projects/.github/workflows/workflow.yml +4 -4
  19. package/templates/multi-projects/.gitignore.tmpl +45 -32
  20. package/templates/multi-projects/.vscode/extensions.json +1 -6
  21. package/templates/multi-projects/.vscode/settings.json +10 -26
  22. package/templates/multi-projects/libraries/{{projectName}}/{package.json.tmpl → package.json} +15 -17
  23. package/templates/multi-projects/libraries/{{projectName}}/src/{index.test.ts.tmpl → index.test.ts} +2 -0
  24. package/templates/multi-projects/oxfmt.config.ts +1 -0
  25. package/templates/multi-projects/oxlint.config.ts +1 -0
  26. package/templates/{single-project/package.json.tmpl → multi-projects/package.json} +11 -5
  27. package/templates/multi-projects/pnpm-workspace.yaml +21 -0
  28. package/templates/single-project/.github/renovate.json +0 -3
  29. package/templates/single-project/.github/workflows/continuous_delivery.yml +8 -14
  30. package/templates/single-project/.github/workflows/conventional_commit.yml +1 -1
  31. package/templates/single-project/.github/workflows/dependency_changelog.yml +1 -1
  32. package/templates/single-project/.github/workflows/workflow.yml +4 -4
  33. package/templates/single-project/.gitignore.tmpl +45 -32
  34. package/templates/single-project/.vscode/extensions.json +1 -6
  35. package/templates/single-project/.vscode/settings.json +10 -26
  36. package/templates/single-project/oxfmt.config.ts +1 -0
  37. package/templates/single-project/oxlint.config.ts +1 -0
  38. package/templates/{multi-projects/package.json.tmpl → single-project/package.json} +11 -5
  39. package/templates/single-project/pnpm-workspace.yaml +20 -0
  40. package/templates/single-project/{{projectName}}/{package.json.tmpl → package.json} +15 -17
  41. package/templates/single-project/{{projectName}}/src/{index.test.ts.tmpl → index.test.ts} +2 -0
  42. package/configs/eslint/constants.js +0 -37
  43. package/configs/eslint/helpers.js +0 -5
  44. package/configs/eslint/index.js +0 -30
  45. package/configs/eslint/presets/dependencies.js +0 -14
  46. package/configs/eslint/presets/eslint.js +0 -133
  47. package/configs/eslint/presets/import.js +0 -65
  48. package/configs/eslint/presets/jsdoc.js +0 -78
  49. package/configs/eslint/presets/markdown.js +0 -1
  50. package/configs/eslint/presets/node.js +0 -50
  51. package/configs/eslint/presets/prettier.js +0 -1
  52. package/configs/eslint/presets/react.js +0 -101
  53. package/configs/eslint/presets/sonar.js +0 -202
  54. package/configs/eslint/presets/stylistic.js +0 -79
  55. package/configs/eslint/presets/test.js +0 -87
  56. package/configs/eslint/presets/typescript.js +0 -198
  57. package/configs/eslint/presets/unicorn.js +0 -143
  58. package/configs/prettier/index.js +0 -25
  59. package/templates/multi-projects/.npmrc.tmpl +0 -8
  60. package/templates/multi-projects/.nvmrc.tmpl +0 -1
  61. package/templates/multi-projects/eslint.config.js.tmpl +0 -1
  62. package/templates/multi-projects/pnpm-workspace.yaml.tmpl +0 -5
  63. package/templates/single-project/.npmrc.tmpl +0 -8
  64. package/templates/single-project/.nvmrc.tmpl +0 -1
  65. package/templates/single-project/eslint.config.js.tmpl +0 -1
  66. package/templates/single-project/pnpm-workspace.yaml.tmpl +0 -4
  67. /package/templates/multi-projects/.changeset/{config.json.tmpl → config.json} +0 -0
  68. /package/templates/multi-projects/.changeset/{welcome.md.tmpl → welcome.md} +0 -0
  69. /package/templates/multi-projects/.github/{PULL_REQUEST_TEMPLATE.md.tmpl → PULL_REQUEST_TEMPLATE.md} +0 -0
  70. /package/templates/multi-projects/{CONTRIBUTING.md.tmpl → CONTRIBUTING.md} +0 -0
  71. /package/templates/multi-projects/{LICENSE.tmpl → LICENSE} +0 -0
  72. /package/templates/multi-projects/examples/default/{package.json.tmpl → package.json} +0 -0
  73. /package/templates/multi-projects/examples/default/src/{index.ts.tmpl → index.ts} +0 -0
  74. /package/templates/multi-projects/libraries/{{projectName}}/{README.md.tmpl → README.md} +0 -0
  75. /package/templates/single-project/.changeset/{config.json.tmpl → config.json} +0 -0
  76. /package/templates/single-project/.changeset/{welcome.md.tmpl → welcome.md} +0 -0
  77. /package/templates/single-project/.github/{PULL_REQUEST_TEMPLATE.md.tmpl → PULL_REQUEST_TEMPLATE.md} +0 -0
  78. /package/templates/single-project/{CONTRIBUTING.md.tmpl → CONTRIBUTING.md} +0 -0
  79. /package/templates/single-project/{LICENSE.tmpl → LICENSE} +0 -0
  80. /package/templates/single-project/examples/default/{package.json.tmpl → package.json} +0 -0
  81. /package/templates/single-project/examples/default/src/{index.ts.tmpl → index.ts} +0 -0
  82. /package/templates/single-project/{{projectName}}/{README.md.tmpl → README.md} +0 -0
package/package.json CHANGED
@@ -1,33 +1,23 @@
1
1
  {
2
2
  "name": "@adbayb/stack",
3
- "version": "0.0.0-next-5dd260c",
3
+ "version": "0.0.0-next.d8e717b",
4
4
  "description": "My opinionated JavaScript-based toolchain",
5
5
  "keywords": [
6
- "stack",
6
+ "development",
7
7
  "scripts",
8
- "toolchain",
9
- "development"
8
+ "stack",
9
+ "toolchain"
10
10
  ],
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/adbayb/stack.git",
14
- "directory": "applications/stack"
15
- },
16
11
  "license": "MIT",
17
12
  "author": {
18
13
  "name": "Ayoub Adib",
19
14
  "email": "adbayb@gmail.com",
20
15
  "url": "https://twitter.com/adbayb"
21
16
  },
22
- "type": "module",
23
- "exports": {
24
- ".": {
25
- "source": "./src/index.ts",
26
- "default": "./dist/index.js"
27
- },
28
- "./eslint": "./configs/eslint/index.js",
29
- "./prettier": "./configs/prettier/index.js",
30
- "./typescript": "./configs/typescript/index.json"
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/adbayb/stack.git",
20
+ "directory": "applications/stack"
31
21
  },
32
22
  "bin": {
33
23
  "stack": "./bin/index.js"
@@ -38,44 +28,47 @@
38
28
  "dist",
39
29
  "templates"
40
30
  ],
41
- "dependencies": {
42
- "@changesets/changelog-github": "^0.6.0",
43
- "@changesets/cli": "^2.31.0",
44
- "@commitlint/cli": "^20.5.2",
45
- "@commitlint/config-conventional": "^20.5.0",
46
- "@eslint-react/eslint-plugin": "^3.0.0",
47
- "@eslint/compat": "^2.0.5",
48
- "@stylistic/eslint-plugin": "^5.10.0",
49
- "@vitest/eslint-plugin": "^1.6.16",
50
- "eslint": "^10.2.1",
51
- "eslint-config-prettier": "^10.1.8",
52
- "eslint-import-resolver-typescript": "^4.4.4",
53
- "eslint-plugin-depend": "^1.5.0",
54
- "eslint-plugin-import-x": "^4.16.2",
55
- "eslint-plugin-jsdoc": "^62.9.0",
56
- "eslint-plugin-mdx": "^3.7.0",
57
- "eslint-plugin-n": "^17.24.0",
58
- "eslint-plugin-perfectionist": "^5.9.0",
59
- "eslint-plugin-prettier": "^5.5.5",
60
- "eslint-plugin-sonarjs": "^4.0.3",
61
- "eslint-plugin-unicorn": "^63.0.0",
62
- "fdir": "^6.5.0",
63
- "globals": "^17.5.0",
64
- "prettier": "^3.8.3",
65
- "prettier-plugin-packagejson": "^3.0.2",
66
- "termost": "^1.9.0",
67
- "turbo": "^2.9.6",
68
- "typescript": "^6.0.3",
69
- "typescript-eslint": "^8.59.0"
70
- },
71
- "devDependencies": {
72
- "@types/node": "24.12.2",
73
- "quickbundle": "2.16.0"
31
+ "type": "module",
32
+ "exports": {
33
+ ".": {
34
+ "source": "./src/index.ts",
35
+ "default": "./dist/index.js"
36
+ },
37
+ "./oxfmt": {
38
+ "source": "./configs/oxfmt/index.ts",
39
+ "types": "./dist/configs/oxfmt.d.ts",
40
+ "default": "./dist/configs/oxfmt.js"
41
+ },
42
+ "./oxlint": {
43
+ "source": "./configs/oxlint/index.ts",
44
+ "types": "./dist/configs/oxlint.d.ts",
45
+ "default": "./dist/configs/oxlint.js"
46
+ },
47
+ "./typescript": "./configs/typescript/index.json"
74
48
  },
75
49
  "publishConfig": {
76
50
  "access": "public",
77
51
  "registry": "https://registry.npmjs.org"
78
52
  },
53
+ "dependencies": {
54
+ "@changesets/changelog-github": "^0.7.0",
55
+ "@changesets/cli": "^2.31.1",
56
+ "@commitlint/cli": "^21.2.1",
57
+ "@commitlint/config-conventional": "^21.2.0",
58
+ "@e18e/eslint-plugin": "^0.8.0",
59
+ "@stylistic/eslint-plugin": "^5.10.0",
60
+ "eslint-plugin-perfectionist": "^5.10.1",
61
+ "oxfmt": "^0.62.0",
62
+ "oxlint": "^1.77.0",
63
+ "oxlint-tsgolint": "^7.0.2001",
64
+ "termost": "^1.9.2",
65
+ "turbo": "^2.10.9",
66
+ "typescript": "^6.0.3"
67
+ },
68
+ "devDependencies": {
69
+ "@types/node": "24.13.3",
70
+ "quickbundle": "3.1.1"
71
+ },
79
72
  "scripts": {
80
73
  "build": "quickbundle build",
81
74
  "prestart": "pnpm build",
@@ -1,9 +1,6 @@
1
1
  {
2
2
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
3
  "extends": [
4
- ":automergeAll",
5
- ":automergePr",
6
- ":automergeRequireAllStatusChecks",
7
4
  ":enableVulnerabilityAlerts",
8
5
  ":label(dependencies)",
9
6
  ":maintainLockFilesMonthly",
@@ -19,31 +19,25 @@ jobs:
19
19
  id-token: write
20
20
  pull-requests: write
21
21
  steps:
22
- - uses: actions/checkout@v6
23
- - uses: pnpm/action-setup@v5
24
- - uses: actions/setup-node@v6
22
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
23
+ - uses: pnpm/action-setup@v6
24
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
25
25
  with:
26
26
  cache: pnpm
27
- node-version-file: ".nvmrc"
27
+ node-version-file: "package.json"
28
28
  - name: Install dependencies
29
29
  run: pnpm install --frozen-lockfile
30
30
  - name: Publish pre-release version(s)
31
31
  if: "!contains(github.event.head_commit.message, 'chore: release package(s)')"
32
32
  run: |
33
- pnpm --filter="!." --filter="!./(applications|examples|tools)/*" --recursive exec pnpm version "$(pnpm show ./ version)-next-${GITHUB_SHA::7}" --no-git-tag-version
34
- pnpm --filter="!." --filter="!./(applications|examples|tools)/*" --recursive exec pnpm publish --tag next --no-git-checks
35
- - name: Create release pull request
36
- if: "!contains(github.event.head_commit.message, 'chore: release package(s)')"
33
+ pnpm --filter="!." --filter="!./applications/*" --filter="!./examples/*" --filter="!./tools/*" --recursive exec \
34
+ node -e "const fs=require('fs'),pkg=JSON.parse(fs.readFileSync('package.json'));pkg.version=pkg.version+'-next-${GITHUB_SHA::7}';fs.writeFileSync('package.json',JSON.stringify(pkg,null,2)+'\n');"
35
+ pnpm --filter="!." --filter="!./applications/*" --filter="!./examples/*" --filter="!./tools/*" --recursive exec pnpm publish --tag next --no-git-checks
36
+ - name: Publish stable version(s)
37
37
  uses: changesets/action@v1
38
38
  with:
39
39
  commit: "chore: release package(s)"
40
40
  title: "chore: release package(s)"
41
- env:
42
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43
- - name: Publish stable version(s)
44
- if: "contains(github.event.head_commit.message, 'chore: release package(s)')"
45
- uses: changesets/action@v1
46
- with:
47
41
  version: pnpm release:version
48
42
  publish: pnpm release:publish
49
43
  env:
@@ -41,7 +41,7 @@ jobs:
41
41
  ```
42
42
  # Delete a previous comment when the issue has been resolved
43
43
  - if: ${{ steps.check_pr_rule.outputs.error_message == null }}
44
- uses: marocchino/sticky-pull-request-comment@v2
44
+ uses: marocchino/sticky-pull-request-comment@v3
45
45
  with:
46
46
  header: check_pr_comment
47
47
  delete: true
@@ -12,7 +12,7 @@ jobs:
12
12
  if: github.actor == 'renovate[bot]'
13
13
  steps:
14
14
  - name: Checkout
15
- uses: actions/checkout@v6
15
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
16
16
  with:
17
17
  fetch-depth: 2
18
18
  ref: ${{ github.head_ref }}
@@ -9,12 +9,12 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
11
  - name: Checkout the code
12
- uses: actions/checkout@v6
13
- - uses: pnpm/action-setup@v5
14
- - uses: actions/setup-node@v6
12
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
13
+ - uses: pnpm/action-setup@v6
14
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
15
15
  with:
16
16
  cache: pnpm
17
- node-version-file: ".nvmrc"
17
+ node-version-file: "package.json"
18
18
  - name: Install dependencies
19
19
  run: pnpm install --frozen-lockfile
20
20
  - name: Build
@@ -5,7 +5,6 @@ npm-debug.log*
5
5
  yarn-debug.log*
6
6
  yarn-error.log*
7
7
  lerna-debug.log*
8
- .pnpm-debug.log*
9
8
 
10
9
  # Diagnostic reports (https://nodejs.org/api/report.html)
11
10
  report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
@@ -57,12 +56,6 @@ web_modules/
57
56
  # Optional stylelint cache
58
57
  .stylelintcache
59
58
 
60
- # Microbundle cache
61
- .rpt2_cache/
62
- .rts2_cache_cjs/
63
- .rts2_cache_es/
64
- .rts2_cache_umd/
65
-
66
59
  # Optional REPL history
67
60
  .node_repl_history
68
61
 
@@ -74,24 +67,42 @@ web_modules/
74
67
 
75
68
  # dotenv environment variable files
76
69
  .env
77
- .env.development.local
78
- .env.test.local
79
- .env.production.local
80
- .env.local
70
+ .env.*
71
+ !.env.example
81
72
 
82
73
  # parcel-bundler cache (https://parceljs.org/)
83
74
  .cache
84
75
  .parcel-cache
85
76
 
77
+ # Next.js build output
78
+ .next
79
+ out
80
+
81
+ # Nuxt.js build / generate output
82
+ .nuxt
83
+ dist
84
+ .output
85
+
86
86
  # Gatsby files
87
87
  .cache/
88
88
  # Comment in the public line in if your project uses Gatsby and not Next.js
89
89
  # https://nextjs.org/blog/next-9-1#public-directory-support
90
90
  # public
91
91
 
92
- # vuepress v2.x temp and cache directory
92
+ # vuepress build output
93
+ .vuepress/dist
94
+
95
+ # vuepress v2.x temp directory
93
96
  .temp
94
- .cache
97
+
98
+ # Sveltekit cache directory
99
+ .svelte-kit/
100
+
101
+ # vitepress build output
102
+ **/.vitepress/dist
103
+
104
+ # vitepress cache directory
105
+ **/.vitepress/cache
95
106
 
96
107
  # Docusaurus cache and generated files
97
108
  .docusaurus
@@ -105,31 +116,33 @@ web_modules/
105
116
  # DynamoDB Local files
106
117
  .dynamodb/
107
118
 
119
+ # Firebase cache directory
120
+ .firebase/
121
+
108
122
  # TernJS port file
109
123
  .tern-port
110
124
 
111
125
  # Stores VSCode versions used for testing VSCode extensions
112
126
  .vscode-test
113
127
 
114
- # yarn v2
115
- .yarn/cache
116
- .yarn/unplugged
117
- .yarn/build-state.yml
118
- .yarn/install-state.gz
119
- .pnp.*
120
-
121
- # Vitest
122
- tsconfig.vitest-temp.json
123
-
124
- # Build output
125
- .expo
126
- web-build
127
- expo-env.d.ts
128
- .next
129
- .nuxt
130
- out
131
- dist
128
+ # pnpm
129
+ .pnpm-store
132
130
 
133
- # Others
131
+ # yarn v3
132
+ .pnp.*
133
+ .yarn/*
134
+ !.yarn/patches
135
+ !.yarn/plugins
136
+ !.yarn/releases
137
+ !.yarn/sdks
138
+ !.yarn/versions
139
+
140
+ # Vite files
141
+ vite.config.js.timestamp-*
142
+ vite.config.ts.timestamp-*
143
+ .vite/
144
+
145
+ # Custom
134
146
  .DS_Store
135
147
  .turbo
148
+ test-results
@@ -1,8 +1,3 @@
1
1
  {
2
- "recommendations": [
3
- "dbaeumer.vscode-eslint",
4
- "unifiedjs.vscode-mdx",
5
- "yoavbls.pretty-ts-errors",
6
- "znck.grammarly"
7
- ]
2
+ "recommendations": ["oxc.oxc-vscode"]
8
3
  }
@@ -1,34 +1,18 @@
1
1
  {
2
- "eslint.validate": [
3
- "javascript",
4
- "javascriptreact",
5
- "typescript",
6
- "typescriptreact",
7
- "markdown",
8
- "mdx",
9
- "astro"
10
- ],
2
+ "editor.defaultFormatter": "oxc.oxc-vscode",
3
+ "editor.formatOnSave": true,
11
4
  "editor.codeActionsOnSave": {
12
- "source.fixAll.eslint": "explicit",
13
- "source.fixAll.ts": "explicit",
14
- "source.addMissingImports.ts": "explicit",
5
+ "source.format.oxc": "always",
6
+ "source.fixAll.oxc": "always",
7
+ "source.fixAll.ts": "always",
8
+ "source.addMissingImports.ts": "always",
15
9
  "source.organizeImports": "never",
16
- "source.organizeLinkDefinitions": "explicit",
10
+ "source.organizeLinkDefinitions": "always",
17
11
  "source.removeUnused.ts": "never",
18
12
  "source.removeUnusedImports": "never",
19
13
  "source.sortImports": "never"
20
14
  },
21
- "workbench.editor.labelFormat": "short",
22
- "typescript.tsdk": "node_modules/typescript/lib",
23
- "typescript.enablePromptUseWorkspaceTsdk": true,
24
- "grammarly.selectors": [
25
- {
26
- "language": "mdx",
27
- "scheme": "file"
28
- },
29
- {
30
- "language": "md",
31
- "scheme": "file"
32
- }
33
- ]
15
+ "js/ts.tsdk.path": "node_modules/typescript/lib",
16
+ "js/ts.tsdk.promptToUseWorkspaceVersion": true,
17
+ "workbench.editor.labelFormat": "short"
34
18
  }
@@ -4,27 +4,29 @@
4
4
  "description": "{{projectDescription}}",
5
5
  "homepage": "https://github.com/{{repoId}}/tree/main/{{projectName}}#readme",
6
6
  "bugs": "https://github.com/{{repoId}}/issues",
7
+ "license": "MIT",
8
+ "author": "Ayoub Adib <adbayb@gmail.com> (https://twitter.com/adbayb)",
7
9
  "repository": {
8
10
  "type": "git",
9
11
  "url": "{{projectUrl}}",
10
12
  "directory": "libraries/{{projectName}}"
11
13
  },
12
- "license": "MIT",
13
- "author": "Ayoub Adib <adbayb@gmail.com> (https://twitter.com/adbayb)",
14
- "sideEffects": false,
15
- "type": "module",
16
- "exports": {
17
- ".": {
18
- "source": "./src/index.ts",
19
- "types": "./dist/index.d.ts",
20
- "require": "./dist/index.cjs",
21
- "import": "./dist/index.mjs",
22
- "default": "./dist/index.mjs"
23
- }
24
- },
25
14
  "files": [
26
15
  "dist"
27
16
  ],
17
+ "type": "module",
18
+ "sideEffects": false,
19
+ "exports": {
20
+ "source": "./src/index.ts",
21
+ "types": "./dist/index.d.ts",
22
+ "require": "./dist/index.cjs",
23
+ "import": "./dist/index.mjs",
24
+ "default": "./dist/index.mjs"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public",
28
+ "registry": "https://registry.npmjs.org"
29
+ },
28
30
  "scripts": {
29
31
  "build": "pnpm clean && quickbundle build",
30
32
  "clean": "rm -rf dist",
@@ -32,9 +34,5 @@
32
34
  "start": "pnpm watch",
33
35
  "test": "vitest --passWithNoTests --typecheck --reporter=verbose",
34
36
  "watch": "quickbundle watch"
35
- },
36
- "publishConfig": {
37
- "access": "public",
38
- "registry": "https://registry.npmjs.org"
39
37
  }
40
38
  }
@@ -1,5 +1,7 @@
1
1
  import { describe, test } from "vitest";
2
2
 
3
+ // oxlint-disable-next-line vitest/warn-todo
3
4
  describe.todo("xxx", () => {
5
+ // oxlint-disable-next-line vitest/warn-todo
4
6
  test.todo("should xxx");
5
7
  });
@@ -0,0 +1 @@
1
+ export { default } from "@adbayb/stack/oxfmt";
@@ -0,0 +1 @@
1
+ export { default } from "@adbayb/stack/oxlint";
@@ -16,10 +16,16 @@
16
16
  "test": "stack test",
17
17
  "watch": "stack watch"
18
18
  },
19
- "prettier": "@adbayb/stack/prettier",
20
- "packageManager": "pnpm@{{npmVersion}}",
21
- "engines": {
22
- "node": ">=24.0.0",
23
- "pnpm": ">=10.0.0"
19
+ "devEngines": {
20
+ "packageManager": {
21
+ "name": "pnpm",
22
+ "version": "{{pnpmVersion}}",
23
+ "onFail": "download"
24
+ },
25
+ "runtime": {
26
+ "name": "node",
27
+ "version": "{{nodeVersion}}",
28
+ "onFail": "error"
29
+ }
24
30
  }
25
31
  }
@@ -0,0 +1,21 @@
1
+ packages:
2
+ - "applications/*"
3
+ - "examples/*"
4
+ - "libraries/*"
5
+ - "tools/*"
6
+ allowBuilds:
7
+ esbuild: true
8
+ saveExact: true
9
+ verifyDepsBeforeRun: "warn"
10
+ update:
11
+ githubActions: true
12
+ minimumReleaseAgeExclude:
13
+ - "@adbayb/*"
14
+ publicHoistPattern:
15
+ - "*changesets*"
16
+ - "*commitlint*"
17
+ - "*oxfmt*"
18
+ - "*oxlint*"
19
+ - "*turbo*"
20
+ - "*typescript*"
21
+ - "*types*"
@@ -1,9 +1,6 @@
1
1
  {
2
2
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
3
  "extends": [
4
- ":automergeAll",
5
- ":automergePr",
6
- ":automergeRequireAllStatusChecks",
7
4
  ":enableVulnerabilityAlerts",
8
5
  ":label(dependencies)",
9
6
  ":maintainLockFilesMonthly",
@@ -19,31 +19,25 @@ jobs:
19
19
  id-token: write
20
20
  pull-requests: write
21
21
  steps:
22
- - uses: actions/checkout@v6
23
- - uses: pnpm/action-setup@v5
24
- - uses: actions/setup-node@v6
22
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
23
+ - uses: pnpm/action-setup@v6
24
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
25
25
  with:
26
26
  cache: pnpm
27
- node-version-file: ".nvmrc"
27
+ node-version-file: "package.json"
28
28
  - name: Install dependencies
29
29
  run: pnpm install --frozen-lockfile
30
30
  - name: Publish pre-release version(s)
31
31
  if: "!contains(github.event.head_commit.message, 'chore: release package(s)')"
32
32
  run: |
33
- pnpm --filter="!." --filter="!./(applications|examples|tools)/*" --recursive exec pnpm version "$(pnpm show ./ version)-next-${GITHUB_SHA::7}" --no-git-tag-version
34
- pnpm --filter="!." --filter="!./(applications|examples|tools)/*" --recursive exec pnpm publish --tag next --no-git-checks
35
- - name: Create release pull request
36
- if: "!contains(github.event.head_commit.message, 'chore: release package(s)')"
33
+ pnpm --filter="!." --filter="!./applications/*" --filter="!./examples/*" --filter="!./tools/*" --recursive exec \
34
+ node -e "const fs=require('fs'),pkg=JSON.parse(fs.readFileSync('package.json'));pkg.version=pkg.version+'-next-${GITHUB_SHA::7}';fs.writeFileSync('package.json',JSON.stringify(pkg,null,2)+'\n');"
35
+ pnpm --filter="!." --filter="!./applications/*" --filter="!./examples/*" --filter="!./tools/*" --recursive exec pnpm publish --tag next --no-git-checks
36
+ - name: Publish stable version(s)
37
37
  uses: changesets/action@v1
38
38
  with:
39
39
  commit: "chore: release package(s)"
40
40
  title: "chore: release package(s)"
41
- env:
42
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43
- - name: Publish stable version(s)
44
- if: "contains(github.event.head_commit.message, 'chore: release package(s)')"
45
- uses: changesets/action@v1
46
- with:
47
41
  version: pnpm release:version
48
42
  publish: pnpm release:publish
49
43
  env:
@@ -41,7 +41,7 @@ jobs:
41
41
  ```
42
42
  # Delete a previous comment when the issue has been resolved
43
43
  - if: ${{ steps.check_pr_rule.outputs.error_message == null }}
44
- uses: marocchino/sticky-pull-request-comment@v2
44
+ uses: marocchino/sticky-pull-request-comment@v3
45
45
  with:
46
46
  header: check_pr_comment
47
47
  delete: true
@@ -12,7 +12,7 @@ jobs:
12
12
  if: github.actor == 'renovate[bot]'
13
13
  steps:
14
14
  - name: Checkout
15
- uses: actions/checkout@v6
15
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
16
16
  with:
17
17
  fetch-depth: 2
18
18
  ref: ${{ github.head_ref }}
@@ -9,12 +9,12 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
11
  - name: Checkout the code
12
- uses: actions/checkout@v6
13
- - uses: pnpm/action-setup@v5
14
- - uses: actions/setup-node@v6
12
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
13
+ - uses: pnpm/action-setup@v6
14
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
15
15
  with:
16
16
  cache: pnpm
17
- node-version-file: ".nvmrc"
17
+ node-version-file: "package.json"
18
18
  - name: Install dependencies
19
19
  run: pnpm install --frozen-lockfile
20
20
  - name: Build