@ankhorage/devtools 1.14.2 → 1.14.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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ManagedFileDefinition } from '../shared/managedFiles.js';
|
|
2
|
-
export declare const workflowManagedFiles: readonly [
|
|
2
|
+
export declare const workflowManagedFiles: readonly ManagedFileDefinition[];
|
|
@@ -1,10 +1,30 @@
|
|
|
1
|
+
import { access } from 'node:fs/promises';
|
|
2
|
+
import { join } from 'node:path';
|
|
1
3
|
import { bunRuntimePolicy, nodeRuntimePolicy } from '../../policy/bunRuntimePolicy.js';
|
|
2
4
|
import { renderRenovateWorkflowAsync } from './renderRenovateWorkflowAsync.js';
|
|
3
5
|
import { renderWorkflowAsync } from './renderWorkflowAsync.js';
|
|
4
6
|
export const workflowManagedFiles = [
|
|
5
7
|
createWorkflowDefinition('.github/workflows/ci.yml', './files/ci.yml'),
|
|
6
|
-
|
|
8
|
+
{
|
|
9
|
+
...createWorkflowDefinition('.github/workflows/release.yml', './files/release.yml'),
|
|
10
|
+
isApplicable: async (targetDirectory) => {
|
|
11
|
+
try {
|
|
12
|
+
await access(join(targetDirectory, '.changeset/config.json'));
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
if (error instanceof Error && 'code' in error && error.code === 'ENOENT')
|
|
17
|
+
return false;
|
|
18
|
+
throw error;
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
},
|
|
7
22
|
createRenovateWorkflowDefinition(),
|
|
23
|
+
{
|
|
24
|
+
relativePath: 'renovate.json5',
|
|
25
|
+
sourceUrl: new URL('./files/renovate.json5', import.meta.url),
|
|
26
|
+
mode: 'create-only',
|
|
27
|
+
},
|
|
8
28
|
];
|
|
9
29
|
function createWorkflowDefinition(relativePath, sourcePath) {
|
|
10
30
|
const sourceUrl = new URL(sourcePath, import.meta.url);
|
package/package.json
CHANGED