code-foundry 0.27.1 → 0.27.3
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/.github/workflows/ci.yml +0 -3
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/commands/sync.mjs +7 -0
- package/src/runtime.mjs +4 -1
package/.github/workflows/ci.yml
CHANGED
|
@@ -74,9 +74,6 @@ jobs:
|
|
|
74
74
|
cache-lint: 'false'
|
|
75
75
|
cache-build: 'false'
|
|
76
76
|
task: format
|
|
77
|
-
task-javascript: 'true'
|
|
78
|
-
task-python: 'false'
|
|
79
|
-
task-rust: 'false'
|
|
80
77
|
- name: Format
|
|
81
78
|
if: steps.applicability.outputs.applicable == 'true'
|
|
82
79
|
run: node .code-foundry/src/runtime.mjs ci format
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.27.3](https://github.com/0xPlayerOne/code-foundry/compare/v0.27.2...v0.27.3) (2026-07-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **ci:** auto-detect format tooling ([2be5228](https://github.com/0xPlayerOne/code-foundry/commit/2be522821b5d3f93b92ca5e2c4b20df345396fc3))
|
|
9
|
+
|
|
10
|
+
## [0.27.2](https://github.com/0xPlayerOne/code-foundry/compare/v0.27.1...v0.27.2) (2026-07-28)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **runtime:** harden dependency setup and audits ([f3c4f85](https://github.com/0xPlayerOne/code-foundry/commit/f3c4f85263232e5023e7e6b3ae50ad2c27f3a47a))
|
|
16
|
+
|
|
3
17
|
## [0.27.1](https://github.com/0xPlayerOne/code-foundry/compare/v0.27.0...v0.27.1) (2026-07-28)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
package/src/commands/sync.mjs
CHANGED
|
@@ -118,6 +118,13 @@ export function syncRepository(options) {
|
|
|
118
118
|
else rmSync(join(target, file), { force: true })
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
+
if (includesValue(languages, 'typescript') && existsSync(join(target, '.prettierignore'))) {
|
|
122
|
+
const prettierIgnore = readFileSync(join(target, '.prettierignore'), 'utf8')
|
|
123
|
+
if (!prettierIgnore.split(/\r?\n/).includes('.code-foundry')) {
|
|
124
|
+
writeOrReport(join(target, '.prettierignore'), `${prettierIgnore.trimEnd()}\n.code-foundry\n`, dryRun)
|
|
125
|
+
changed.push('.prettierignore')
|
|
126
|
+
}
|
|
127
|
+
}
|
|
121
128
|
if (!dryRun && existsSync(join(target, '.githooks/pre-commit'))) {
|
|
122
129
|
chmodSync(join(target, '.githooks/pre-commit'), 0o755)
|
|
123
130
|
git(target, ['config', 'core.hooksPath', '.githooks'])
|
package/src/runtime.mjs
CHANGED
|
@@ -110,6 +110,9 @@ function install() {
|
|
|
110
110
|
else {
|
|
111
111
|
if (!existsSync(resolve(root, '.venv'))) run('python', ['-m', 'venv', '.venv'])
|
|
112
112
|
const python = resolve(root, '.venv/bin/python')
|
|
113
|
+
if (spawnSync(python, ['-m', 'pip', '--version'], { stdio: 'ignore' }).status !== 0) {
|
|
114
|
+
run(python, ['-m', 'ensurepip', '--upgrade'])
|
|
115
|
+
}
|
|
113
116
|
if (existsSync(resolve(root, 'requirements.txt'))) run(python, ['-m', 'pip', 'install', '--disable-pip-version-check', '-r', 'requirements.txt'])
|
|
114
117
|
if (existsSync(resolve(root, 'requirements-dev.txt'))) run(python, ['-m', 'pip', 'install', '--disable-pip-version-check', '-r', 'requirements-dev.txt'])
|
|
115
118
|
}
|
|
@@ -212,7 +215,7 @@ function security(task, ecosystem) {
|
|
|
212
215
|
: []
|
|
213
216
|
/** @type {Record<string, [string, string[]]>} */
|
|
214
217
|
const commands = {
|
|
215
|
-
bun: ['bun', ['audit', ...ignores.flatMap((advisory) => ['--ignore', advisory])]],
|
|
218
|
+
bun: ['bun', ['audit', '--audit-level=high', ...ignores.flatMap((advisory) => ['--ignore', advisory])]],
|
|
216
219
|
pnpm: ['pnpm', ['audit', '--audit-level', 'high']],
|
|
217
220
|
yarn: ['yarn', ['npm', 'audit', '--all', '--recursive']],
|
|
218
221
|
npm: ['npm', ['audit', '--audit-level=high']],
|