Skip to content

Commit bd11e3c

Browse files
committed
build: update tools
1 parent c3571a7 commit bd11e3c

File tree

4 files changed

+10
-30
lines changed

4 files changed

+10
-30
lines changed

build/.eslintrc.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

build/change-version.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99

1010
'use strict'
1111

12-
// eslint-disable-next-line unicorn/prefer-node-protocol
13-
const fs = require('fs').promises
14-
// eslint-disable-next-line unicorn/prefer-node-protocol
15-
const path = require('path')
12+
const fs = require('node:fs').promises
13+
const path = require('node:path')
1614
const globby = require('globby')
1715

1816
const VERBOSE = process.argv.includes('--verbose')
@@ -83,5 +81,4 @@ async function main(args) {
8381
}
8482
}
8583

86-
// eslint-disable-next-line unicorn/prefer-top-level-await
8784
main(process.argv.slice(2))

build/pug.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/usr/bin/env node
22
'use strict'
33

4-
// eslint-disable-next-line unicorn/prefer-node-protocol
5-
const fs = require('fs').promises
6-
// eslint-disable-next-line unicorn/prefer-node-protocol
7-
const path = require('path')
8-
const mkdirp = require('mkdirp')
4+
const fs = require('node:fs').promises
5+
const path = require('node:path')
6+
const { mkdirp } = require('mkdirp')
97
const pug = require('pug')
8+
109
const { basename, dirname, resolve, sep } = path
1110

1211
const globby = require('globby')
@@ -84,5 +83,4 @@ async function main(args) {
8483
}
8584
}
8685

87-
// eslint-disable-next-line unicorn/prefer-top-level-await
8886
main(args)

build/vendors.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
'use strict'
44

5-
// eslint-disable-next-line unicorn/prefer-node-protocol
6-
const fs = require('fs')
7-
// eslint-disable-next-line unicorn/prefer-node-protocol
8-
const path = require('path')
9-
const extension = path.extname
5+
const fs = require('node:fs')
6+
const path = require('node:path')
107
const injector = require('@coreui/vendors-injector')
8+
9+
const extension = path.extname
1110
const dist = 'dist/'
1211

1312
const walkSync = (dir, filelist = []) => {

0 commit comments

Comments
 (0)