Skip to content

Commit ca4b586

Browse files
authored
Upgrade del to 8.0 and remove del from tokens (#2631)
1 parent e689c65 commit ca4b586

File tree

5 files changed

+32
-31
lines changed

5 files changed

+32
-31
lines changed

packages/flight-icons/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@typescript-eslint/parser": "^8.18.1",
4242
"archiver": "^7.0.1",
4343
"chalk": "^5.4.0",
44-
"del": "^6.1.1",
44+
"del": "^8.0.0",
4545
"dotenv": "^16.4.7",
4646
"eslint": "^8.57.1",
4747
"figma-api": "^2.0.1-beta",

packages/flight-icons/scripts/build.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import dotenv from 'dotenv';
77
import fs from 'fs-extra';
8-
import del from 'del';
8+
import { deleteSync } from 'del';
99
import chalk from 'chalk';
1010

1111
import { optimizeAssetsSVG } from './build-parts/optimizeAssetsSVG';
@@ -76,7 +76,7 @@ async function build() {
7676
// notice: comment this if you need to debug the assets initial SVG processing
7777
try {
7878
console.log('Removing the "temp" folder');
79-
del.sync(`${config.tempFolder}`, { force: true });
79+
deleteSync(`${config.tempFolder}`, { force: true });
8080
} catch (err) {
8181
console.error(err);
8282
}

packages/flight-icons/scripts/sync.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import dotenv from 'dotenv';
77
import fs from 'fs-extra';
8-
import del from 'del';
8+
import { deleteSync } from 'del';
99
import chalk from 'chalk';
1010
import isEqual from 'lodash/isEqual';
1111

@@ -44,7 +44,7 @@ async function sync() {
4444
// remove existing output folder
4545
try {
4646
console.log('Removing "svg-original" output folder');
47-
del.sync(`${config.mainFolder}/svg-original/`, { force: true })
47+
deleteSync(`${config.mainFolder}/svg-original/`, { force: true })
4848
} catch (err) {
4949
console.error(err);
5050
}

packages/tokens/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"@types/tinycolor2": "^1.4.6",
3030
"@typescript-eslint/eslint-plugin": "^8.18.1",
3131
"@typescript-eslint/parser": "^8.18.1",
32-
"del": "^5.1.0",
3332
"eslint": "^8.57.1",
3433
"fs-extra": "^11.2.0",
3534
"lodash-es": "^4.17.21",

yarn.lock

+27-25
Original file line numberDiff line numberDiff line change
@@ -3852,7 +3852,6 @@ __metadata:
38523852
"@types/tinycolor2": "npm:^1.4.6"
38533853
"@typescript-eslint/eslint-plugin": "npm:^8.18.1"
38543854
"@typescript-eslint/parser": "npm:^8.18.1"
3855-
del: "npm:^5.1.0"
38563855
eslint: "npm:^8.57.1"
38573856
fs-extra: "npm:^11.2.0"
38583857
lodash-es: "npm:^4.17.21"
@@ -3943,7 +3942,7 @@ __metadata:
39433942
"@typescript-eslint/parser": "npm:^8.18.1"
39443943
archiver: "npm:^7.0.1"
39453944
chalk: "npm:^5.4.0"
3946-
del: "npm:^6.1.1"
3945+
del: "npm:^8.0.0"
39473946
dotenv: "npm:^16.4.7"
39483947
eslint: "npm:^8.57.1"
39493948
figma-api: "npm:^2.0.1-beta"
@@ -11457,19 +11456,17 @@ __metadata:
1145711456
languageName: node
1145811457
linkType: hard
1145911458

11460-
"del@npm:^6.1.1":
11461-
version: 6.1.1
11462-
resolution: "del@npm:6.1.1"
11459+
"del@npm:^8.0.0":
11460+
version: 8.0.0
11461+
resolution: "del@npm:8.0.0"
1146311462
dependencies:
11464-
globby: "npm:^11.0.1"
11465-
graceful-fs: "npm:^4.2.4"
11466-
is-glob: "npm:^4.0.1"
11467-
is-path-cwd: "npm:^2.2.0"
11468-
is-path-inside: "npm:^3.0.2"
11469-
p-map: "npm:^4.0.0"
11470-
rimraf: "npm:^3.0.2"
11471-
slash: "npm:^3.0.0"
11472-
checksum: 10/563288b73b8b19a7261c47fd21a330eeab6e2acd7c6208c49790dfd369127120dd7836cdf0c1eca216b77c94782a81507eac6b4734252d3bef2795cb366996b6
11463+
globby: "npm:^14.0.2"
11464+
is-glob: "npm:^4.0.3"
11465+
is-path-cwd: "npm:^3.0.0"
11466+
is-path-inside: "npm:^4.0.0"
11467+
p-map: "npm:^7.0.2"
11468+
slash: "npm:^5.1.0"
11469+
checksum: 10/502dea7a846f989e1d921733f5d41ae4ae9b3eff168d335bfc050c9ce938ddc46198180be133814269268c4b0aed441a82fbace948c0ec5eed4ed086a4ad3b0e
1147311470
languageName: node
1147411471
linkType: hard
1147511472

@@ -15867,7 +15864,7 @@ __metadata:
1586715864
languageName: node
1586815865
linkType: hard
1586915866

15870-
"globby@npm:^14.0.1":
15867+
"globby@npm:^14.0.1, globby@npm:^14.0.2":
1587115868
version: 14.0.2
1587215869
resolution: "globby@npm:14.0.2"
1587315870
dependencies:
@@ -17308,13 +17305,27 @@ __metadata:
1730817305
languageName: node
1730917306
linkType: hard
1731017307

17311-
"is-path-inside@npm:^3.0.1, is-path-inside@npm:^3.0.2, is-path-inside@npm:^3.0.3":
17308+
"is-path-cwd@npm:^3.0.0":
17309+
version: 3.0.0
17310+
resolution: "is-path-cwd@npm:3.0.0"
17311+
checksum: 10/bc34d13b6a03dfca4a3ab6a8a5ba78ae4b24f4f1db4b2b031d2760c60d0913bd16a4b980dcb4e590adfc906649d5f5132684079a3972bd219da49deebb9adea8
17312+
languageName: node
17313+
linkType: hard
17314+
17315+
"is-path-inside@npm:^3.0.1, is-path-inside@npm:^3.0.3":
1731217316
version: 3.0.3
1731317317
resolution: "is-path-inside@npm:3.0.3"
1731417318
checksum: 10/abd50f06186a052b349c15e55b182326f1936c89a78bf6c8f2b707412517c097ce04bc49a0ca221787bc44e1049f51f09a2ffb63d22899051988d3a618ba13e9
1731517319
languageName: node
1731617320
linkType: hard
1731717321

17322+
"is-path-inside@npm:^4.0.0":
17323+
version: 4.0.0
17324+
resolution: "is-path-inside@npm:4.0.0"
17325+
checksum: 10/8810fa11c58e6360b82c3e0d6cd7d9c7d0392d3ac9eb10f980b81f9839f40ac6d1d6d6f05d069db0d227759801228f0b072e1b6c343e4469b065ab5fe0b68fe5
17326+
languageName: node
17327+
linkType: hard
17328+
1731817329
"is-plain-obj@npm:2.1.0":
1731917330
version: 2.1.0
1732017331
resolution: "is-plain-obj@npm:2.1.0"
@@ -21248,15 +21259,6 @@ __metadata:
2124821259
languageName: node
2124921260
linkType: hard
2125021261

21251-
"p-map@npm:^4.0.0":
21252-
version: 4.0.0
21253-
resolution: "p-map@npm:4.0.0"
21254-
dependencies:
21255-
aggregate-error: "npm:^3.0.0"
21256-
checksum: 10/7ba4a2b1e24c05e1fc14bbaea0fc6d85cf005ae7e9c9425d4575550f37e2e584b1af97bcde78eacd7559208f20995988d52881334db16cf77bc1bcf68e48ed7c
21257-
languageName: node
21258-
linkType: hard
21259-
2126021262
"p-map@npm:^7.0.2":
2126121263
version: 7.0.3
2126221264
resolution: "p-map@npm:7.0.3"

0 commit comments

Comments
 (0)