re2js 0.2.0 → 0.3.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,6 +1,6 @@
1
1
  {
2
2
  "name": "re2js",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "RE2JS is the JavaScript port of RE2, a regular expression engine that provides linear time matching",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -29,13 +29,14 @@
29
29
  "require": "./build/index.cjs.js"
30
30
  }
31
31
  },
32
+ "types": "build/index.esm.d.ts",
32
33
  "scripts": {
33
- "build": "rollup -c --environment production",
34
+ "build": "rollup -c && tsc",
34
35
  "dev": "rollup -c -w",
35
- "lint": "pnpify run prettier --check src tools babel.config.js jest.config.js && eslint src/**/*.js tools/**/*.js babel.config.js jest.config.js",
36
+ "lint": "pnpify run prettier --check src tools babel.config.js jest.config.js rollup.config.js && eslint src/**/*.js tools/**/*.js babel.config.js jest.config.js",
36
37
  "test": "node --experimental-vm-modules $(yarn bin jest) -c jest.config.js",
37
38
  "test:watch": "node --experimental-vm-modules $(yarn bin jest) -c jest.config.js --watch",
38
- "format": "pnpify run prettier --write src tools babel.config.js jest.config.js"
39
+ "format": "pnpify run prettier --write src tools babel.config.js jest.config.js rollup.config.js"
39
40
  },
40
41
  "devDependencies": {
41
42
  "@babel/core": "^7.22.9",
@@ -46,7 +47,6 @@
46
47
  "@rollup/plugin-babel": "^6.0.3",
47
48
  "@rollup/plugin-commonjs": "^25.0.3",
48
49
  "@rollup/plugin-node-resolve": "^15.1.0",
49
- "@rollup/plugin-terser": "^0.4.3",
50
50
  "@unicode/unicode-15.1.0": "^0.0.2",
51
51
  "@yarnpkg/pnpify": "^4.0.0-rc.48",
52
52
  "eslint": "^8.46.0",
@@ -59,6 +59,7 @@
59
59
  "lodash": "^4.17.21",
60
60
  "prettier": "^3.0.1",
61
61
  "rollup": "^3.27.2",
62
+ "typescript": "^5.1.6",
62
63
  "unicode-property-value-aliases": "^3.7.0"
63
64
  },
64
65
  "packageManager": "yarn@3.6.0"