Skip to content

Commit 7404e26

Browse files
committed
update: update packages.
1 parent fa86653 commit 7404e26

File tree

8 files changed

+46
-47
lines changed

8 files changed

+46
-47
lines changed

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
auto-install-peers=true
22
legacy-peer-deps=true
3-
node-linker=hoisted
3+
# node-linker=hoisted

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,49 +16,49 @@
1616
}
1717
},
1818
"scripts": {
19+
"build": "npm run clean && tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json",
1920
"clean": "rimraf dist/",
2021
"dev": "nodemon --quiet",
21-
"start:dev": "tsc --watch",
22-
"start": "node ./dist/index.js",
23-
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
24-
"build": "npm run clean && tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json",
2522
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
26-
"test": "jest",
23+
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
24+
"start": "node ./dist/cjs/index.js",
25+
"test:cov": "jest --coverage",
2726
"test:watch": "jest --watch",
28-
"test:cov": "jest --coverage"
27+
"test": "jest"
2928
},
3029
"author": "npv2k1",
3130
"license": "MIT",
3231
"dependencies": {
3332
"dotenv": "^16.3.1",
34-
"react": "^18.2.0"
33+
"lodash": "^4.17.21"
3534
},
3635
"devDependencies": {
3736
"@swc/cli": "^0.1.62",
3837
"@swc/core": "^1.3.74",
3938
"@swc/helpers": "^0.5.1",
39+
"@types/jest": "28.1.6",
40+
"@types/lodash": "^4.14.197",
4041
"@types/node": "^18.16.19",
42+
"@typescript-eslint/eslint-plugin": "5.30.7",
43+
"@typescript-eslint/parser": "5.30.7",
4144
"concurrently": "^7.6.0",
4245
"copyfiles": "^2.4.1",
4346
"cross-env": "^7.0.3",
47+
"eslint": "8.20.0",
48+
"eslint-config-prettier": "8.5.0",
49+
"eslint-plugin-prettier": "4.2.1",
50+
"eslint-plugin-simple-import-sort": "^10.0.0",
51+
"jest": "28.1.3",
4452
"nodemon": "^2.0.22",
53+
"prettier": "2.7.1",
4554
"regenerator-runtime": "^0.13.11",
4655
"rimraf": "^3.0.2",
56+
"ts-jest": "28.0.7",
4757
"ts-node": "^10.9.1",
4858
"ts-node-dev": "^2.0.0",
4959
"tsconfig-paths": "^4.2.0",
5060
"tslib": "^2.6.0",
5161
"typescript": "4.7.4",
52-
"unbuild": "^1.2.1",
53-
"prettier": "2.7.1",
54-
"@typescript-eslint/eslint-plugin": "5.30.7",
55-
"@typescript-eslint/parser": "5.30.7",
56-
"eslint": "8.20.0",
57-
"eslint-config-prettier": "8.5.0",
58-
"eslint-plugin-prettier": "4.2.1",
59-
"eslint-plugin-simple-import-sort": "^10.0.0",
60-
"@types/jest": "28.1.6",
61-
"jest": "28.1.3",
62-
"ts-jest": "28.0.7"
62+
"unbuild": "^1.2.1"
6363
}
6464
}

pnpm-lock.yaml

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
const hello = (name: string) => {
2-
return `Hello ${name}`;
3-
};
4-
51
async function bootstrap() {
6-
console.log('App started jhsbcdh okockdsock', hello('world scd cds sdc'));
2+
console.log('Hello');
73
}
84
bootstrap();

src/utils/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// utils

tsconfig.cjs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"compilerOptions": {
44
"module": "CommonJS",
55
"outDir": "dist/cjs"
6-
}
6+
},
7+
"exclude": ["node_modules", "dist", "tests"]
78
}

tsconfig.esm.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"compilerOptions": {
44
"module": "ESNext",
55
"outDir": "dist/esm"
6-
}
6+
},
7+
"exclude": ["node_modules", "dist", "tests"]
78
}

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"jsx": "react",
4-
"module": "es2022",
4+
"module": "CommonJS",
55
"target": "es2022",
66
"declaration": true,
77
"emitDecoratorMetadata": true,
@@ -24,9 +24,9 @@
2424
"@/*": ["./src/*"]
2525
}
2626
},
27-
"ts-node": {
27+
"ts-node": {
2828
"swc": true
2929
},
3030
"include": ["**/*.ts", "**/*.tsx"],
31-
"exclude": ["node_modules", "dist"]
31+
"exclude": ["node_modules", "dist"]
3232
}

0 commit comments

Comments
 (0)