nx 22.2.0-canary.20251201-731aba3 → 22.2.0-canary.20251203-2e442d5
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/migrations.json +0 -5
- package/package.json +11 -11
- package/src/command-line/init/implementation/utils.d.ts.map +1 -1
- package/src/command-line/init/implementation/utils.js +0 -14
- package/src/command-line/release/utils/git.d.ts +15 -0
- package/src/command-line/release/utils/git.d.ts.map +1 -1
- package/src/command-line/release/utils/git.js +35 -0
- package/src/command-line/release/utils/release-graph.d.ts.map +1 -1
- package/src/command-line/release/utils/release-graph.js +2 -1
- package/src/command-line/release/utils/shared.d.ts.map +1 -1
- package/src/command-line/release/utils/shared.js +6 -4
- package/src/command-line/release/version/release-group-processor.d.ts.map +1 -1
- package/src/command-line/release/version/release-group-processor.js +3 -2
- package/src/core/graph/main.js +1 -1
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/migrations/update-21-1-0/add-gitignore-entry.d.ts +0 -3
- package/src/migrations/update-21-1-0/add-gitignore-entry.d.ts.map +0 -1
- package/src/migrations/update-21-1-0/add-gitignore-entry.js +0 -24
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-gitignore-entry.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/migrations/update-21-1-0/add-gitignore-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C,wBAA8B,iBAAiB,CAAC,IAAI,EAAE,IAAI,iBAoBzD"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = addGitignoreEntry;
|
|
4
|
-
const ignore = require("ignore");
|
|
5
|
-
async function addGitignoreEntry(tree) {
|
|
6
|
-
if (!tree.exists('nx.json')) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
const GITIGNORE_ENTRIES = [
|
|
10
|
-
'.cursor/rules/nx-rules.mdc',
|
|
11
|
-
'.github/instructions/nx.instructions.md',
|
|
12
|
-
];
|
|
13
|
-
if (!tree.exists('.gitignore')) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
let content = tree.read('.gitignore', 'utf-8') || '';
|
|
17
|
-
const ig = ignore().add(content);
|
|
18
|
-
for (const entry of GITIGNORE_ENTRIES) {
|
|
19
|
-
if (!ig.ignores(entry)) {
|
|
20
|
-
content = content.trimEnd() + '\n' + entry + '\n';
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
tree.write('.gitignore', content);
|
|
24
|
-
}
|