Skip to content

Commit

Permalink
use rollup to build to cjs and mjs and use vitest instead of jest
Browse files Browse the repository at this point in the history
  • Loading branch information
zgid123 committed Apr 6, 2023
1 parent b465068 commit 4611771
Show file tree
Hide file tree
Showing 10 changed files with 897 additions and 1,996 deletions.
10 changes: 0 additions & 10 deletions jestconfig.json

This file was deleted.

46 changes: 29 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
{
"name": "string-interpolation-js",
"version": "1.0.6",
"version": "1.0.7",
"description": "Simple module to format string from template",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"main": "./lib/index.cjs",
"module": "./lib/index.mjs",
"types": "./lib/index.d.ts",
"exports": {
".": {
"import": "./lib/index.mjs",
"require": "./lib/index.cjs",
"types": "./lib/index.d.ts"
}
},
"scripts": {
"prepublish": "rm -rf lib && tsc",
"test": "jest --config jestconfig.json",
"prepublish": "pnpm build",
"build": "rollup --config rollup.config.ts --configPlugin typescript",
"test": "vitest run --passWithNoTests",
"update-packages": "pnpm update -i -r --latest"
},
"keywords": [
Expand All @@ -23,21 +32,24 @@
},
"license": "MIT",
"devDependencies": {
"@types/jest": "^29.0.3",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"eslint": "^8.2.0",
"eslint-config-prettier": "^8.3.0",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-typescript": "^11.1.0",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"eslint": "^8.37.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-typescript": "^3.0.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^8.0.1",
"jest": "^29.0.3",
"lint-staged": "^13.0.3",
"prettier": "^2.5.1",
"ts-jest": "^29.0.2",
"typescript": "^4.5.2"
"husky": "^8.0.3",
"lint-staged": "^13.2.0",
"prettier": "^2.8.7",
"rollup": "^3.20.2",
"typescript": "^5.0.3",
"vitest": "^0.29.8"
},
"dependencies": {
"tslib": "^2.4.0"
"tslib": "^2.5.0"
}
}
Loading

0 comments on commit 4611771

Please sign in to comment.