query-weaver 0.0.2 → 0.0.4-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,28 +1,54 @@
1
1
  {
2
2
  "name": "query-weaver",
3
- "version": "0.0.2",
3
+ "version": "0.0.4-alpha.0",
4
4
  "description": "SQL query builder using template string literal",
5
- "main": "dist/cjs/index.js",
6
- "module": "dist/esm/index.mjs",
7
- "types": "dist/esm/index.d.ts",
5
+ "main": "./dist/index.cjs.js",
6
+ "module": "./dist/index.esm.mjs",
7
+ "types": "./dist/index.d.ts",
8
8
  "files": [
9
9
  "dist/"
10
10
  ],
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.esm.mjs",
15
+ "require": "./dist/index.cjs.js"
16
+ }
17
+ },
11
18
  "scripts": {
12
- "clean": "rm -rf dist",
13
- "test": "echo \"Error: no test specified\" && exit 1",
14
- "build": "npm run clean && rollup -c"
19
+ "clean": "rimraf dist",
20
+ "test": "jest",
21
+ "build": "npm run clean && npm run build:esbuild && npm run build:types",
22
+ "build:esbuild": "node -r esbuild-register build.ts",
23
+ "build:types": "tsc --declaration --emitDeclarationOnly --declarationDir './dist'",
24
+ "format": "prettier --check . --ignore-path .gitignore",
25
+ "format:fix": "npm run format -- --write",
26
+ "lint": "eslint src --ext .ts --ignore-path .gitignore",
27
+ "lint:fix": "npm run lint -- --fix",
28
+ "type-check": "tsc --noEmit -p tsconfig.json",
29
+ "prepare": "husky install"
15
30
  },
16
31
  "author": "kikuchan98@gmail.com",
17
32
  "homepage": "https://github.com/kikuchan/query-weaver#readme",
18
33
  "license": "MIT",
19
34
  "devDependencies": {
20
- "@babel/preset-env": "^7.20.2",
21
- "@rollup/plugin-babel": "^6.0.3",
22
- "@rollup/plugin-typescript": "^11.0.0",
35
+ "@types/jest": "^29.4.0",
23
36
  "@types/pg": "^8.6.6",
24
37
  "@types/pg-escape": "^0.2.1",
25
- "rollup": "^3.17.0",
38
+ "@typescript-eslint/eslint-plugin": "^5.52.0",
39
+ "@typescript-eslint/parser": "^5.52.0",
40
+ "esbuild": "^0.16.17",
41
+ "esbuild-jest": "^0.5.0",
42
+ "esbuild-node-externals": "^1.6.0",
43
+ "esbuild-register": "^3.4.2",
44
+ "eslint": "^8.34.0",
45
+ "eslint-config-prettier": "^8.6.0",
46
+ "husky": "^8.0.3",
47
+ "jest": "^29.4.3",
48
+ "lint-staged": "^13.1.2",
49
+ "pg": "^8.9.0",
50
+ "prettier": "^2.8.4",
51
+ "rimraf": "^4.1.2",
26
52
  "typescript": "^4.9.5"
27
53
  },
28
54
  "dependencies": {