chore(core): delete local .node files before publish (#15268)
This commit is contained in:
parent
0b30f1fce7
commit
24452aac70
@ -10,10 +10,8 @@ import { NativeFileHasher } from './native-file-hasher';
|
|||||||
function createFileHasher(): FileHasherBase {
|
function createFileHasher(): FileHasherBase {
|
||||||
try {
|
try {
|
||||||
if (
|
if (
|
||||||
!(
|
!process.env.NX_NON_NATIVE_HASHER ||
|
||||||
process.env.NX_NON_NATIVE_HASHER &&
|
process.env.NX_NON_NATIVE_HASHER != 'true'
|
||||||
process.env.NX_NON_NATIVE_HASHER == 'false'
|
|
||||||
)
|
|
||||||
) {
|
) {
|
||||||
return new NativeFileHasher();
|
return new NativeFileHasher();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -72,6 +72,12 @@ function hideFromGitIndex(uncommittedFiles: string[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!options.local && process.env.NPM_TOKEN) {
|
if (!options.local && process.env.NPM_TOKEN) {
|
||||||
|
// Delete all .node files that were built during the previous steps
|
||||||
|
// Always run before the artifacts step because we still need the .node files for native-packages
|
||||||
|
execSync('find ./build -name "*.node" -delete', {
|
||||||
|
stdio: [0, 1, 2],
|
||||||
|
});
|
||||||
|
|
||||||
execSync('npx nx run-many --target=artifacts', {
|
execSync('npx nx run-many --target=artifacts', {
|
||||||
stdio: [0, 1, 2],
|
stdio: [0, 1, 2],
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user