Skip to content

Commit f962af3

Browse files
authored
Merge pull request #38 from EmbeddedEnterprises/download
fix: fix download issues in the download utils + add tests + remove downloadZip
2 parents 33de7f9 + e64fdc3 commit f962af3

File tree

13 files changed

+608
-2514
lines changed

13 files changed

+608
-2514
lines changed

.eslintrc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
2-
"extends": "eslint-config-atomic/strict",
2+
"extends": "eslint-config-atomic",
33
"ignorePatterns": [
44
"build/",
55
"dist/",
6-
"node_modules/"
6+
"node_modules/",
7+
"coverage/"
78
],
89
"overrides": [
910
{

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ jobs:
5959
- name: Lint
6060
run: pnpm run test.lint
6161

62-
# - name: Tests
63-
# run: pnpm test
62+
- name: Tests
63+
run: pnpm test

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ node_modules
44
package-lock.json
55
stats.html
66
.eslintcache
7+
.tmp/
8+
coverage/
9+
.turbo/

.npmrc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package-lock=false
22
lockfile=true
3-
public-hoist-pattern[]=*types*
4-
public-hoist-pattern[]=*vite*
3+
public-hoist-pattern[]=*@types*
54
public-hoist-pattern[]=*eslint*
6-
public-hoist-pattern[]=*rollup*
5+
public-hoist-pattern[]=rollup
6+
public-hoist-pattern[]=*@vitest*
7+

package.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@
3737
"bin": "build/main.js",
3838
"scripts": {
3939
"clean": "shx rm -rf build",
40-
"lint": "eslint . --cache \"./**/*.{js,ts,mjs,mts,cjs,cts,json,yaml,yml}\" --fix",
41-
"test.lint": "eslint . --cache \"./**/*.{js,ts,mjs,mts,cjs,cts,json,yaml,yml}\"",
40+
"lint": "turbo run lint.turbo",
41+
"lint.turbo": "eslint . --cache \"./**/*.{js,ts,mjs,mts,cjs,cts,json,yaml,yml}\" --fix",
42+
"test.lint": "turbo run test.turbo",
43+
"test.lint.turbo": "eslint . --cache \"./**/*.{js,ts,mjs,mts,cjs,cts,json,yaml,yml}\"",
4244
"dev.tsc": "tsc -w --pretty",
4345
"dev.legacy-main": "vite --mode legacy-main",
4446
"dev.legacy-lib": "vite --mode legacy-lib",
@@ -50,8 +52,10 @@
5052
"build.legacy-lib": "vite build --mode legacy-lib",
5153
"build.modern-main": "vite build --mode modern-main",
5254
"build.modern-lib": "vite build --mode modern-lib",
53-
"build": "cross-env NODE_ENV=production run-p build.legacy-main build.legacy-lib build.modern-main build.modern-lib build.tsc",
54-
"test": "pnpm dlx vitest --watch false"
55+
"build": "turbo run build.turbo",
56+
"build.turbo": "",
57+
"test": "cross-env NODE_OPTIONS=--enable-source-maps pnpx vitest --watch false",
58+
"coverage": "pnpm test --coverage"
5559
},
5660
"files": [
5761
"build/**/*",
@@ -93,6 +97,7 @@
9397
"@types/url-join": "~4.0.3",
9498
"@types/which": "~3.0.4",
9599
"@upleveled/babel-plugin-remove-node-prefix": "^1.0.5",
100+
"turbo": "^2.4.4",
96101
"cross-env": "^7.0.3",
97102
"eslint": "8",
98103
"eslint-config-atomic": "^1.22.1",
@@ -103,7 +108,9 @@
103108
"vite": "^6.2.2",
104109
"vitest": "^3.0.9",
105110
"vite-plugin-babel": "^1.3.0",
111+
"@vitest/coverage-v8": "3.0.9",
106112
"zeromq": "^6.3.0",
113+
"ci-info": "^4.2.0",
107114
"fast-glob": "^3.3.2",
108115
"fs-extra": "^10",
109116
"resolve": "^1.22.8",
@@ -112,8 +119,7 @@
112119
"tar": "^6",
113120
"url-join": "^4.0.1",
114121
"which": "^2",
115-
"node-downloader-helper": "^2.1.7",
116-
"extract-zip": "^2.0.1"
122+
"node-downloader-helper": "^2.1.7"
117123
},
118124
"packageManager": "pnpm@10.6.5",
119125
"$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/package.json",

0 commit comments

Comments
 (0)