Skip to content

Commit

Permalink
feat(project): modernize stack, bump xlsx dep
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Apr 15, 2024
1 parent a281a68 commit 310d555
Show file tree
Hide file tree
Showing 21 changed files with 1,923 additions and 1,334 deletions.
4 changes: 1 addition & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"root": true,
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["**/*.js"]
"extends": ["@mgcrea/node"]
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.DS_Store
.idea/
lib/
dist/
node_modules/
.vscode/
*.tsbuildinfo
Expand Down
6 changes: 2 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"singleQuote": true,
"printWidth": 120,
"proseWrap": "always",
"bracketSpacing": false
"printWidth": 110,
"plugins": ["prettier-plugin-organize-imports"]
}
10 changes: 0 additions & 10 deletions jest.config.ts

This file was deleted.

52 changes: 31 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,30 @@
"author": "Olivier Louvignes <[email protected]>",
"version": "0.23.0",
"description": "NodeJS Excel files parser & builder",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"type": "module",
"main": "./dist/index.cjs",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"bin": {
"node-xlsx": "./lib/bin/cli.js"
"node-xlsx": "./dist/bin/cli.js"
},
"files": [
"dist"
],
"scripts": {
"start": "npm run spec -- --watch",
"build": "rimraf lib/*; tsc --build",
"build": "tsup --entry src/index.ts --format cjs,esm --sourcemap --dts --clean --entry src/bin/cli.ts",
"lint": "eslint src/ test/",
"prettycheck": "prettier --check src/ test/",
"prettify": "prettier --write src/ test/",
"typecheck": "tsc --noEmit",
"spec": "jest --runInBand",
"spec": "DEBUG=node-xlsx* vitest --run",
"watch": "DEBUG=node-xlsx* vitest --watch",
"test": "npm run lint && npm run prettycheck && npm run typecheck && npm run spec",
"prepublishOnly": "npm run build"
},
Expand All @@ -24,22 +36,20 @@
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
},
"devDependencies": {
"@jest/globals": "^29.5.0",
"@tsconfig/node10": "^1.0.9",
"@types/jest": "^29.5.1",
"@types/sodium-native": "^2.3.5",
"@typescript-eslint/eslint-plugin": "^5.59.7",
"@typescript-eslint/parser": "^5.59.7",
"eslint": "^8.41.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.5.0",
"prettier": "^2.8.8",
"rimraf": "^5.0.1",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
"@jest/globals": "^29.7.0",
"@mgcrea/eslint-config-node": "^0.10.0",
"@tsconfig/node-lts": "^20.1.1",
"@tsconfig/strictest": "^2.0.3",
"@types/node": "^20.12.7",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"prettier-plugin-organize-imports": "^3.2.4",
"rimraf": "^5.0.5",
"ts-node": "^10.9.2",
"tsup": "^8.0.2",
"typescript": "^5.4.5",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.5.0"
},
"engines": {
"node": ">=10.0.0"
Expand Down
Loading

0 comments on commit 310d555

Please sign in to comment.