rrule-rust 2.0.0-next.7 → 2.0.0-next.8

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.
@@ -88,7 +88,7 @@ export class RRuleDateTime {
88
88
  get minute(): number
89
89
  get second(): number
90
90
  get millisecond(): number
91
- get toString(): string
91
+ toString(): string
92
92
  toDate(): Date
93
93
  toUtcDate(): Date
94
94
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "rrule-rust",
3
- "version": "2.0.0-next.7",
4
- "main": "index.js",
5
- "types": "index.d.ts",
3
+ "version": "2.0.0-next.8",
4
+ "main": "dist/index.js",
5
+ "types": "dist/index.d.ts",
6
6
  "keywords": [
7
7
  "rrule",
8
8
  "icalendar",
@@ -41,6 +41,8 @@
41
41
  },
42
42
  "license": "MIT",
43
43
  "devDependencies": {
44
+ "@commitlint/cli": "^19.3.0",
45
+ "@commitlint/config-conventional": "^19.2.2",
44
46
  "@napi-rs/cli": "^2.18.2",
45
47
  "@semantic-release/git": "^10.0.1",
46
48
  "@types/jest": "^29.5.0",
@@ -49,24 +51,24 @@
49
51
  "@typescript-eslint/parser": "^5.50.0",
50
52
  "benny": "^3.7.1",
51
53
  "conventional-changelog-conventionalcommits": "^7.0.2",
54
+ "cpy-cli": "^5.0.0",
52
55
  "eslint": "^8.33.0",
53
56
  "eslint-config-prettier": "^8.6.0",
54
57
  "eslint-plugin-eslint-comments": "^3.2.0",
55
58
  "eslint-plugin-import": "^2.27.5",
56
59
  "eslint-plugin-prettier": "^4.2.1",
60
+ "husky": "^9.0.11",
57
61
  "jest": "^29.5.0",
58
- "lint-staged": "^13.1.0",
59
- "pre-commit": "^1.2.2",
62
+ "lint-staged": "^15.2.2",
63
+ "mkdirp": "^3.0.1",
60
64
  "prettier": "^2.8.3",
65
+ "rimraf": "^5.0.5",
61
66
  "rrule": "^2.7.2",
62
- "semantic-release": "^22.0.12",
67
+ "semantic-release": "^23.0.8",
63
68
  "ts-jest": "^29.0.5",
64
69
  "ts-node": "^10.9.1",
65
- "typescript": "^4.9.4"
70
+ "typescript": "^5.4.5"
66
71
  },
67
- "pre-commit": [
68
- "lint:fix-staged"
69
- ],
70
72
  "lint-staged": {
71
73
  "**/*.{js,ts,json}": "eslint --fix --max-warnings=0",
72
74
  "**/*.rs": "rustfmt"
@@ -76,33 +78,35 @@
76
78
  },
77
79
  "scripts": {
78
80
  "artifacts": "napi artifacts",
79
- "build": "napi build --platform --release --js-package-name @rrule-rust/lib",
80
- "build:debug": "napi build --platform",
81
+ "prebuild": "rimraf ./dist && mkdirp ./dist",
82
+ "postbuild": "cpy ./*.node ./dist && rimraf --glob ./*.node",
83
+ "build": "napi build --js dist/index.js --dts dist/index.d.ts --platform --release",
81
84
  "prepublishOnly": "napi prepublish -t npm",
82
85
  "test": "jest",
83
86
  "universal": "napi universal",
84
87
  "version": "napi version",
85
88
  "benchmark": "ts-node ./benchmark/index.ts",
86
89
  "lint": "cargo fmt --all -- --check && eslint \"**/*.{js,ts,json}\" --max-warnings=0",
87
- "lint:fix": "cargo fmt --all && npm run lint --fix",
88
- "lint:fix-staged": "lint-staged"
90
+ "lint:fix": "cargo fmt --all && npm run lint -- --fix",
91
+ "lint:fix-staged": "lint-staged",
92
+ "prepare": "husky && npm run build"
89
93
  },
90
94
  "optionalDependencies": {
91
- "@rrule-rust/lib-win32-x64-msvc": "2.0.0-next.7",
92
- "@rrule-rust/lib-darwin-x64": "2.0.0-next.7",
93
- "@rrule-rust/lib-linux-x64-gnu": "2.0.0-next.7",
94
- "@rrule-rust/lib-darwin-arm64": "2.0.0-next.7",
95
- "@rrule-rust/lib-android-arm64": "2.0.0-next.7",
96
- "@rrule-rust/lib-linux-arm64-gnu": "2.0.0-next.7",
97
- "@rrule-rust/lib-linux-arm64-musl": "2.0.0-next.7",
98
- "@rrule-rust/lib-win32-arm64-msvc": "2.0.0-next.7",
99
- "@rrule-rust/lib-linux-arm-gnueabihf": "2.0.0-next.7",
100
- "@rrule-rust/lib-linux-arm-musleabihf": "2.0.0-next.7",
101
- "@rrule-rust/lib-linux-x64-musl": "2.0.0-next.7",
102
- "@rrule-rust/lib-freebsd-x64": "2.0.0-next.7",
103
- "@rrule-rust/lib-win32-ia32-msvc": "2.0.0-next.7",
104
- "@rrule-rust/lib-android-arm-eabi": "2.0.0-next.7",
105
- "@rrule-rust/lib-darwin-universal": "2.0.0-next.7",
106
- "@rrule-rust/lib-linux-riscv64-gnu": "2.0.0-next.7"
95
+ "@rrule-rust/lib-win32-x64-msvc": "2.0.0-next.8",
96
+ "@rrule-rust/lib-darwin-x64": "2.0.0-next.8",
97
+ "@rrule-rust/lib-linux-x64-gnu": "2.0.0-next.8",
98
+ "@rrule-rust/lib-darwin-arm64": "2.0.0-next.8",
99
+ "@rrule-rust/lib-android-arm64": "2.0.0-next.8",
100
+ "@rrule-rust/lib-linux-arm64-gnu": "2.0.0-next.8",
101
+ "@rrule-rust/lib-linux-arm64-musl": "2.0.0-next.8",
102
+ "@rrule-rust/lib-win32-arm64-msvc": "2.0.0-next.8",
103
+ "@rrule-rust/lib-linux-arm-gnueabihf": "2.0.0-next.8",
104
+ "@rrule-rust/lib-linux-arm-musleabihf": "2.0.0-next.8",
105
+ "@rrule-rust/lib-linux-x64-musl": "2.0.0-next.8",
106
+ "@rrule-rust/lib-freebsd-x64": "2.0.0-next.8",
107
+ "@rrule-rust/lib-win32-ia32-msvc": "2.0.0-next.8",
108
+ "@rrule-rust/lib-android-arm-eabi": "2.0.0-next.8",
109
+ "@rrule-rust/lib-darwin-universal": "2.0.0-next.8",
110
+ "@rrule-rust/lib-linux-riscv64-gnu": "2.0.0-next.8"
107
111
  }
108
112
  }
File without changes