Skip to content

Commit 198b6d6

Browse files
committed
fix(build): revert node: prefix in copy-artifacts
The prebuildify Docker images for linuxglibc use Node.js 12 which doesn't support the node: protocol prefix in require calls. This was causing CI failures during the build step.
1 parent cca7772 commit 198b6d6

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

eslint.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ module.exports = [
4545
},
4646
},
4747
},
48+
{
49+
files: ['scripts/copy-artifacts.js'],
50+
rules: {
51+
'unicorn/prefer-node-protocol': 'off',
52+
},
53+
},
4854
{
4955
ignores: ['build/', 'target/', 'prebuilds/'],
5056
},

scripts/copy-artifacts.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict'
22

3-
const fs = require('node:fs')
4-
const path = require('node:path')
5-
const readline = require('node:readline')
3+
const fs = require('fs')
4+
const path = require('path')
5+
const readline = require('readline')
66

77
const rootPath = path.resolve(path.join(__dirname, '..'))
88
const cratesPath = path.join(rootPath, 'crates')

0 commit comments

Comments
 (0)