Trying to upgrade docx to use Vite
This commit is contained in:
12
package.json
12
package.json
@ -3,16 +3,19 @@
|
||||
"version": "8.0.3",
|
||||
"description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.",
|
||||
"main": "build/index.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc && vite build",
|
||||
"preview": "vite preview",
|
||||
"pretest": "rimraf ./build",
|
||||
"test": "mocha --config=.mocharc.json",
|
||||
"test.coverage": "nyc npm test",
|
||||
"test.watch": "npm test -- --watch",
|
||||
"prepublishOnly": "npm run build --production",
|
||||
"lint": "eslint -c .eslintrc.js --ext .ts src",
|
||||
"build": "npm run webpack && npm run fix-types",
|
||||
"lint": "eslint --ext .ts src",
|
||||
"webpack": "rimraf ./build && webpack --config ./webpack.config.ts",
|
||||
"demo": "ts-node --esm --skip-project ./demo/index.ts",
|
||||
"demo": "ts-node --esm ./demo/index.ts",
|
||||
"typedoc": "rimraf ./build && typedoc src/index.ts --tsconfig tsconfig.typedoc.json",
|
||||
"style": "prettier -l \"{src,scripts,demo}/**/*.{ts,html}\"",
|
||||
"style.fix": "npm run style -- --write",
|
||||
@ -70,6 +73,7 @@
|
||||
"@types/sinon": "^10.0.0",
|
||||
"@types/unzipper": "^0.10.4",
|
||||
"@types/webpack": "^5.0.0",
|
||||
"@types/xml": "^1.0.8",
|
||||
"@typescript-eslint/eslint-plugin": "^5.36.1",
|
||||
"@typescript-eslint/parser": "^5.36.1",
|
||||
"buffer": "^6.0.3",
|
||||
@ -107,6 +111,8 @@
|
||||
"typedoc": "^0.23.2",
|
||||
"typescript": "5.0.3",
|
||||
"unzipper": "^0.10.11",
|
||||
"vite": "^4.3.2",
|
||||
"vite-tsconfig-paths": "^4.2.0",
|
||||
"webpack": "^5.28.0",
|
||||
"webpack-cli": "^5.0.0"
|
||||
},
|
||||
|
Reference in New Issue
Block a user