Skip to content

Commit 548d2a5

Browse files
committed
feat(add): initial commits
1 parent 6a8cac8 commit 548d2a5

File tree

6 files changed

+35
-16
lines changed

6 files changed

+35
-16
lines changed

.mocharc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extension": [
3+
"ts"
4+
],
5+
"require": [
6+
"ts-node/register",
7+
"tsconfig-paths/register"
8+
],
9+
"spec": "packages/**/tests/**/*.spec.ts",
10+
"timeout": 10000
11+
}

bun.lockb

6.04 KB
Binary file not shown.

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,17 @@
3030
"@types/node": "^22.9.0",
3131
"@typescript-eslint/parser": "^8.13.0",
3232
"@typescript-eslint/eslint-plugin": "^8.13.0",
33+
"chai": "^5.1.2",
3334
"commitlint": "^19.6.0",
3435
"eslint": "^9.14.0",
3536
"husky": "^9.1.7",
3637
"lerna": "^8.1.9",
3738
"lint-staged": "^15.2.10",
39+
"mocha": "^10.8.2",
40+
"nodebyte.js": "workspace:*",
3841
"prettier": "^3.3.3",
42+
"ts-node": "^10.9.2",
43+
"tsconfig-paths": "^4.2.0",
3944
"typescript": "^5.6.3",
4045
"typedoc": "^0.24.0"
4146
},

packages/nodebyte.js/package.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@
44
"version": "0.0.0",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
7-
"type": "module",
87
"directories": {
98
"src": "src",
10-
"tests": "tests"
9+
"test": "tests"
1110
},
1211
"files": [
1312
"dist/**/*"
1413
],
1514
"scripts": {
1615
"build": "tsc",
17-
"test": "mocha --require esm 'tests/**/*.spec.mjs'"
16+
"test": "mocha"
1817
},
1918
"dependencies": {
2019
"chalk": "^5.3.0",
@@ -25,15 +24,12 @@
2524
"@babel/register": "^7.25.9",
2625
"@babel/preset-env": "^7.26.0",
2726
"@types/chai": "^5.0.1",
28-
"@types/mocha": "^10.0.9",
27+
"@types/expect": "^24.3.2",
2928
"@types/debug": "^4.1.12",
29+
"@types/mocha": "^10.0.9",
3030
"@types/node": "^22.10.1",
31-
"chai": "^5.1.2",
32-
"esm": "^3.2.25",
33-
"mocha": "^10.8.2",
3431
"ora": "^8.1.1",
35-
"typescript": "^5.7.2",
36-
"tsconfig-paths": "^4.2.0",
37-
"ts-node": "^10.9.2"
32+
"ts-node": "^10.9.2",
33+
"typescript": "^5.7.2"
3834
}
3935
}

packages/nodebyte.js/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4+
"rootDir": ".",
45
"outDir": "dist",
5-
"rootDir": "."
6+
"module": "commonjs"
67
},
7-
"include": ["src/**/*.ts", "tests/**/*.ts", "tests/logger.spec.mjs"],
8+
"include": ["src/**/*.ts", "tests/**/*.ts"],
89
"exclude": ["node_modules", "dist"]
910
}

tsconfig.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"packages/*"
77
]
88
},
9-
"target": "ES2022",
10-
"module": "ESNext",
9+
"target": "ES6",
10+
"module": "commonjs",
1111
"moduleResolution": "node",
1212
"esModuleInterop": true,
1313
"allowSyntheticDefaultImports": true,
@@ -23,14 +23,20 @@
2323
"removeComments": false,
2424
"declaration": false,
2525
"declarationMap": false,
26-
"sourceMap": true,
26+
"sourceMap": false,
2727
"experimentalDecorators": true,
2828
"emitDecoratorMetadata": true,
2929
"lib": [
30-
"ESNext"
30+
"ESNext",
31+
"ES6",
32+
"ES2019",
33+
"ES2017",
34+
"ES2020",
35+
"DOM"
3136
]
3237
},
3338
"exclude": [
39+
"packages/**/tests/**/*.ts",
3440
"node_modules",
3541
"dist"
3642
],

0 commit comments

Comments
 (0)