Skip to content

Commit 567b73e

Browse files
committed
refactor: clean up build_package.js and remove unused imports
chore: update .gitignore to remove Python cache entries
1 parent 366de0b commit 567b73e

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,5 @@ logs/
5555
# GHA credentials
5656
gha-creds-*.json
5757

58-
# Python caches
59-
__pycache__/
60-
*.py[codz]
61-
*$py.class
62-
6358
# Log files
6459
patch_output.log

scripts/build_package.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// See the License for the specific language governing permissions and
1818
// limitations under the License.
1919

20-
import { execSync, spawnSync } from 'node:child_process';
20+
import { execSync } from 'node:child_process';
2121
import { writeFileSync } from 'node:fs';
2222
import { join } from 'node:path';
2323

@@ -27,15 +27,7 @@ if (!process.cwd().includes('packages')) {
2727
}
2828

2929
// build typescript files
30-
const tscResult = spawnSync('tsc', ['--build'], { stdio: 'inherit' });
31-
32-
if (tscResult.status !== 0) {
33-
const failureReason =
34-
tscResult.status !== null
35-
? `exit code ${tscResult.status}`
36-
: `signal ${tscResult.signal ?? 'unknown'}`;
37-
console.warn(`tsc --build completed with warnings (${failureReason}).`);
38-
}
30+
execSync('tsc --build', { stdio: 'inherit' });
3931

4032
// copy .{md,json} files
4133
execSync('node ../../scripts/copy_files.js', { stdio: 'inherit' });

0 commit comments

Comments
 (0)