@stacksjs/actions 0.75.41 → 0.75.43
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/dist/lint/files.d.ts +2 -0
- package/dist/lint/files.js +1 -0
- package/dist/lint/lint.js +1 -1
- package/package.json +43 -43
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const lintableFile=/\.(?:ts|js|json|md|yaml|yml)$/i,ignoredPath=/(?:^|\/)(?:node_modules|dist|pantry|storage\/framework\/cache|\.git|\.stx|\.stx-serve)(?:\/|$)/;export function isLintablePath(file){return lintableFile.test(file)&&!ignoredPath.test(file)}
|
package/dist/lint/lint.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/cli";import{execSync}from"node:child_process";import{runFormat,runLint}from"pickier";
|
|
1
|
+
import process from"node:process";import{log}from"@stacksjs/cli";import{execSync}from"node:child_process";import{runFormat,runLint}from"pickier";import{isLintablePath}from"./files";export function lintableFiles(cwd){try{return execSync("git ls-files -z --cached --others --exclude-standard",{cwd,encoding:"utf8",stdio:["ignore","pipe","ignore"]}).split("\x00").filter(isLintablePath)}catch{return[]}}export async function lintProject(options={}){const cwd=options.cwd??process.cwd();log.info(options.fix?"Ensuring Code Style...":"Checking Code Style...");const files=lintableFiles(cwd);if(!files.length){log.success("Linted");return{ok:!0}}const ok=await runLint(files,{maxWarnings:9999,fix:options.fix})===0;if(ok)log.success("Linted");return{ok}}export function lintFix(options={}){return lintProject({...options,fix:!0})}export async function formatProject(options={}){const cwd=options.cwd??process.cwd(),files=lintableFiles(cwd);if(!files.length)return{ok:!0};return{ok:await runFormat(files,{write:options.write,check:options.check})===0}}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/actions",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.43",
|
|
6
6
|
"description": "The Stacks actions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -60,57 +60,57 @@
|
|
|
60
60
|
"prepublishOnly": "bun run build"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@stacksjs/action-runner": "0.75.
|
|
64
|
-
"@stacksjs/ai": "0.75.
|
|
65
|
-
"@stacksjs/analytics": "0.75.
|
|
66
|
-
"@stacksjs/api": "0.75.
|
|
67
|
-
"@stacksjs/auth": "0.75.
|
|
68
|
-
"@stacksjs/build": "0.75.
|
|
63
|
+
"@stacksjs/action-runner": "0.75.43",
|
|
64
|
+
"@stacksjs/ai": "0.75.43",
|
|
65
|
+
"@stacksjs/analytics": "0.75.43",
|
|
66
|
+
"@stacksjs/api": "0.75.43",
|
|
67
|
+
"@stacksjs/auth": "0.75.43",
|
|
68
|
+
"@stacksjs/build": "0.75.43",
|
|
69
69
|
"@stacksjs/bumpx": "^0.2.18",
|
|
70
70
|
"@stacksjs/bunpress": "^0.2.14",
|
|
71
|
-
"@stacksjs/cli": "0.75.
|
|
72
|
-
"@stacksjs/cloud": "0.75.
|
|
73
|
-
"@stacksjs/cms": "0.75.
|
|
74
|
-
"@stacksjs/components": "^0.2.
|
|
75
|
-
"@stacksjs/config": "0.75.
|
|
76
|
-
"@stacksjs/database": "0.75.
|
|
77
|
-
"@stacksjs/desktop-build": "0.75.
|
|
78
|
-
"@stacksjs/dns": "0.75.
|
|
79
|
-
"@stacksjs/enums": "0.75.
|
|
80
|
-
"@stacksjs/env": "0.75.
|
|
81
|
-
"@stacksjs/error-handling": "0.75.
|
|
71
|
+
"@stacksjs/cli": "0.75.43",
|
|
72
|
+
"@stacksjs/cloud": "0.75.43",
|
|
73
|
+
"@stacksjs/cms": "0.75.43",
|
|
74
|
+
"@stacksjs/components": "^0.2.350",
|
|
75
|
+
"@stacksjs/config": "0.75.43",
|
|
76
|
+
"@stacksjs/database": "0.75.43",
|
|
77
|
+
"@stacksjs/desktop-build": "0.75.43",
|
|
78
|
+
"@stacksjs/dns": "0.75.43",
|
|
79
|
+
"@stacksjs/enums": "0.75.43",
|
|
80
|
+
"@stacksjs/env": "0.75.43",
|
|
81
|
+
"@stacksjs/error-handling": "0.75.43",
|
|
82
82
|
"@stacksjs/gitit": "^0.2.5",
|
|
83
|
-
"@stacksjs/i18n": "0.75.
|
|
84
|
-
"@stacksjs/image": "0.75.
|
|
85
|
-
"@stacksjs/logging": "0.75.
|
|
83
|
+
"@stacksjs/i18n": "0.75.43",
|
|
84
|
+
"@stacksjs/image": "0.75.43",
|
|
85
|
+
"@stacksjs/logging": "0.75.43",
|
|
86
86
|
"@stacksjs/logsmith": "^0.2.11",
|
|
87
|
-
"@stacksjs/orm": "0.75.
|
|
88
|
-
"@stacksjs/path": "0.75.
|
|
89
|
-
"@stacksjs/payments": "0.75.
|
|
90
|
-
"@stacksjs/queue": "0.75.
|
|
91
|
-
"@stacksjs/registry": "0.75.
|
|
92
|
-
"@stacksjs/router": "0.75.
|
|
87
|
+
"@stacksjs/orm": "0.75.43",
|
|
88
|
+
"@stacksjs/path": "0.75.43",
|
|
89
|
+
"@stacksjs/payments": "0.75.43",
|
|
90
|
+
"@stacksjs/queue": "0.75.43",
|
|
91
|
+
"@stacksjs/registry": "0.75.43",
|
|
92
|
+
"@stacksjs/router": "0.75.43",
|
|
93
93
|
"@stacksjs/rpx": "^0.11.54",
|
|
94
|
-
"@stacksjs/scheduler": "0.75.
|
|
95
|
-
"@stacksjs/search-engine": "0.75.
|
|
96
|
-
"@stacksjs/security": "0.75.
|
|
97
|
-
"@stacksjs/server": "0.75.
|
|
98
|
-
"@stacksjs/sites": "0.75.
|
|
99
|
-
"@stacksjs/storage": "0.75.
|
|
100
|
-
"@stacksjs/strings": "0.75.
|
|
101
|
-
"@stacksjs/stx": "^0.2.
|
|
94
|
+
"@stacksjs/scheduler": "0.75.43",
|
|
95
|
+
"@stacksjs/search-engine": "0.75.43",
|
|
96
|
+
"@stacksjs/security": "0.75.43",
|
|
97
|
+
"@stacksjs/server": "0.75.43",
|
|
98
|
+
"@stacksjs/sites": "0.75.43",
|
|
99
|
+
"@stacksjs/storage": "0.75.43",
|
|
100
|
+
"@stacksjs/strings": "0.75.43",
|
|
101
|
+
"@stacksjs/stx": "^0.2.350",
|
|
102
102
|
"@stacksjs/tlsx": "^0.13.19",
|
|
103
|
-
"@stacksjs/ts-cloud": "^0.16.
|
|
103
|
+
"@stacksjs/ts-cloud": "^0.16.23",
|
|
104
104
|
"@stacksjs/ts-md": "^0.1.1",
|
|
105
|
-
"@stacksjs/tunnel": "0.75.
|
|
106
|
-
"@stacksjs/types": "0.75.
|
|
107
|
-
"@stacksjs/utils": "0.75.
|
|
108
|
-
"@stacksjs/whois": "0.75.
|
|
109
|
-
"bun-plugin-stx": "^0.2.
|
|
105
|
+
"@stacksjs/tunnel": "0.75.43",
|
|
106
|
+
"@stacksjs/types": "0.75.43",
|
|
107
|
+
"@stacksjs/utils": "0.75.43",
|
|
108
|
+
"@stacksjs/whois": "0.75.43",
|
|
109
|
+
"bun-plugin-stx": "^0.2.350"
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|
|
112
112
|
"craft-native": ">=0.0.107",
|
|
113
|
-
"pickier": "^0.1.
|
|
113
|
+
"pickier": "^0.1.67"
|
|
114
114
|
},
|
|
115
115
|
"peerDependenciesMeta": {
|
|
116
116
|
"pickier": {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|
|
124
|
-
"@stacksjs/validation": "0.75.
|
|
124
|
+
"@stacksjs/validation": "0.75.43",
|
|
125
125
|
"better-dx": "^0.2.24"
|
|
126
126
|
}
|
|
127
127
|
}
|