@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.
- package/README.md +4 -4
- package/bin/index.js +2 -4
- package/configs/{prettier → oxfmt}/README.md +6 -14
- package/configs/oxfmt/index.ts +41 -0
- package/configs/{eslint → oxlint}/README.md +4 -4
- package/configs/oxlint/index.ts +319 -0
- package/configs/typescript/index.json +1 -7
- package/dist/configs/oxfmt.d.ts +32 -0
- package/dist/configs/oxfmt.js +37 -0
- package/dist/configs/oxlint.d.ts +273 -0
- package/dist/configs/oxlint.js +325 -0
- package/dist/index.js +819 -779
- package/package.json +44 -51
- package/templates/multi-projects/.github/renovate.json +0 -3
- package/templates/multi-projects/.github/workflows/continuous_delivery.yml +8 -14
- package/templates/multi-projects/.github/workflows/conventional_commit.yml +1 -1
- package/templates/multi-projects/.github/workflows/dependency_changelog.yml +1 -1
- package/templates/multi-projects/.github/workflows/workflow.yml +4 -4
- package/templates/multi-projects/.gitignore.tmpl +45 -32
- package/templates/multi-projects/.vscode/extensions.json +1 -6
- package/templates/multi-projects/.vscode/settings.json +10 -26
- package/templates/multi-projects/libraries/{{projectName}}/{package.json.tmpl → package.json} +15 -17
- package/templates/multi-projects/libraries/{{projectName}}/src/{index.test.ts.tmpl → index.test.ts} +2 -0
- package/templates/multi-projects/oxfmt.config.ts +1 -0
- package/templates/multi-projects/oxlint.config.ts +1 -0
- package/templates/{single-project/package.json.tmpl → multi-projects/package.json} +11 -5
- package/templates/multi-projects/pnpm-workspace.yaml +21 -0
- package/templates/single-project/.github/renovate.json +0 -3
- package/templates/single-project/.github/workflows/continuous_delivery.yml +8 -14
- package/templates/single-project/.github/workflows/conventional_commit.yml +1 -1
- package/templates/single-project/.github/workflows/dependency_changelog.yml +1 -1
- package/templates/single-project/.github/workflows/workflow.yml +4 -4
- package/templates/single-project/.gitignore.tmpl +45 -32
- package/templates/single-project/.vscode/extensions.json +1 -6
- package/templates/single-project/.vscode/settings.json +10 -26
- package/templates/single-project/oxfmt.config.ts +1 -0
- package/templates/single-project/oxlint.config.ts +1 -0
- package/templates/{multi-projects/package.json.tmpl → single-project/package.json} +11 -5
- package/templates/single-project/pnpm-workspace.yaml +20 -0
- package/templates/single-project/{{projectName}}/{package.json.tmpl → package.json} +15 -17
- package/templates/single-project/{{projectName}}/src/{index.test.ts.tmpl → index.test.ts} +2 -0
- package/configs/eslint/constants.js +0 -37
- package/configs/eslint/helpers.js +0 -5
- package/configs/eslint/index.js +0 -30
- package/configs/eslint/presets/dependencies.js +0 -14
- package/configs/eslint/presets/eslint.js +0 -133
- package/configs/eslint/presets/import.js +0 -65
- package/configs/eslint/presets/jsdoc.js +0 -78
- package/configs/eslint/presets/markdown.js +0 -1
- package/configs/eslint/presets/node.js +0 -50
- package/configs/eslint/presets/prettier.js +0 -1
- package/configs/eslint/presets/react.js +0 -101
- package/configs/eslint/presets/sonar.js +0 -202
- package/configs/eslint/presets/stylistic.js +0 -79
- package/configs/eslint/presets/test.js +0 -87
- package/configs/eslint/presets/typescript.js +0 -198
- package/configs/eslint/presets/unicorn.js +0 -143
- package/configs/prettier/index.js +0 -25
- package/templates/multi-projects/.npmrc.tmpl +0 -8
- package/templates/multi-projects/.nvmrc.tmpl +0 -1
- package/templates/multi-projects/eslint.config.js.tmpl +0 -1
- package/templates/multi-projects/pnpm-workspace.yaml.tmpl +0 -5
- package/templates/single-project/.npmrc.tmpl +0 -8
- package/templates/single-project/.nvmrc.tmpl +0 -1
- package/templates/single-project/eslint.config.js.tmpl +0 -1
- package/templates/single-project/pnpm-workspace.yaml.tmpl +0 -4
- /package/templates/multi-projects/.changeset/{config.json.tmpl → config.json} +0 -0
- /package/templates/multi-projects/.changeset/{welcome.md.tmpl → welcome.md} +0 -0
- /package/templates/multi-projects/.github/{PULL_REQUEST_TEMPLATE.md.tmpl → PULL_REQUEST_TEMPLATE.md} +0 -0
- /package/templates/multi-projects/{CONTRIBUTING.md.tmpl → CONTRIBUTING.md} +0 -0
- /package/templates/multi-projects/{LICENSE.tmpl → LICENSE} +0 -0
- /package/templates/multi-projects/examples/default/{package.json.tmpl → package.json} +0 -0
- /package/templates/multi-projects/examples/default/src/{index.ts.tmpl → index.ts} +0 -0
- /package/templates/multi-projects/libraries/{{projectName}}/{README.md.tmpl → README.md} +0 -0
- /package/templates/single-project/.changeset/{config.json.tmpl → config.json} +0 -0
- /package/templates/single-project/.changeset/{welcome.md.tmpl → welcome.md} +0 -0
- /package/templates/single-project/.github/{PULL_REQUEST_TEMPLATE.md.tmpl → PULL_REQUEST_TEMPLATE.md} +0 -0
- /package/templates/single-project/{CONTRIBUTING.md.tmpl → CONTRIBUTING.md} +0 -0
- /package/templates/single-project/{LICENSE.tmpl → LICENSE} +0 -0
- /package/templates/single-project/examples/default/{package.json.tmpl → package.json} +0 -0
- /package/templates/single-project/examples/default/src/{index.ts.tmpl → index.ts} +0 -0
- /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
|
|
3
|
+
"version": "0.0.0-next.d8e717b",
|
|
4
4
|
"description": "My opinionated JavaScript-based toolchain",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
6
|
+
"development",
|
|
7
7
|
"scripts",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
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
|
-
"
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
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
|
-
"
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
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",
|
|
@@ -19,31 +19,25 @@ jobs:
|
|
|
19
19
|
id-token: write
|
|
20
20
|
pull-requests: write
|
|
21
21
|
steps:
|
|
22
|
-
- uses: actions/checkout@
|
|
23
|
-
- uses: pnpm/action-setup@
|
|
24
|
-
- uses: actions/setup-node@
|
|
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: ".
|
|
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="!./
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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@
|
|
44
|
+
uses: marocchino/sticky-pull-request-comment@v3
|
|
45
45
|
with:
|
|
46
46
|
header: check_pr_comment
|
|
47
47
|
delete: true
|
|
@@ -9,12 +9,12 @@ jobs:
|
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
steps:
|
|
11
11
|
- name: Checkout the code
|
|
12
|
-
uses: actions/checkout@
|
|
13
|
-
- uses: pnpm/action-setup@
|
|
14
|
-
- uses: actions/setup-node@
|
|
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: ".
|
|
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
|
|
78
|
-
|
|
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
|
|
92
|
+
# vuepress build output
|
|
93
|
+
.vuepress/dist
|
|
94
|
+
|
|
95
|
+
# vuepress v2.x temp directory
|
|
93
96
|
.temp
|
|
94
|
-
|
|
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
|
-
#
|
|
115
|
-
.
|
|
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
|
-
#
|
|
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,34 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
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.
|
|
13
|
-
"source.fixAll.
|
|
14
|
-
"source.
|
|
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": "
|
|
10
|
+
"source.organizeLinkDefinitions": "always",
|
|
17
11
|
"source.removeUnused.ts": "never",
|
|
18
12
|
"source.removeUnusedImports": "never",
|
|
19
13
|
"source.sortImports": "never"
|
|
20
14
|
},
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
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
|
}
|
package/templates/multi-projects/libraries/{{projectName}}/{package.json.tmpl → package.json}
RENAMED
|
@@ -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
|
}
|
|
@@ -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
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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*"
|
|
@@ -19,31 +19,25 @@ jobs:
|
|
|
19
19
|
id-token: write
|
|
20
20
|
pull-requests: write
|
|
21
21
|
steps:
|
|
22
|
-
- uses: actions/checkout@
|
|
23
|
-
- uses: pnpm/action-setup@
|
|
24
|
-
- uses: actions/setup-node@
|
|
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: ".
|
|
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="!./
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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@
|
|
44
|
+
uses: marocchino/sticky-pull-request-comment@v3
|
|
45
45
|
with:
|
|
46
46
|
header: check_pr_comment
|
|
47
47
|
delete: true
|
|
@@ -9,12 +9,12 @@ jobs:
|
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
steps:
|
|
11
11
|
- name: Checkout the code
|
|
12
|
-
uses: actions/checkout@
|
|
13
|
-
- uses: pnpm/action-setup@
|
|
14
|
-
- uses: actions/setup-node@
|
|
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: ".
|
|
17
|
+
node-version-file: "package.json"
|
|
18
18
|
- name: Install dependencies
|
|
19
19
|
run: pnpm install --frozen-lockfile
|
|
20
20
|
- name: Build
|