Skip to content

Commit

Permalink
Merge pull request #13 from tonysamperi/v5
Browse files Browse the repository at this point in the history
v5.0.0
  • Loading branch information
tonysamperi authored May 27, 2024
2 parents f52cfc6 + 0d12f1a commit a92cbfc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 5.0.0
* Fix package.json for correct package interpretation

## 4.6.0 (Luxon next 3.4.4)
* Validate time zone in quickDT prior to guessing offset (#1575)
* Use getPrototypeOf instead of __proto__ (#1592)
Expand Down
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-luxon",
"version": "4.6.0",
"version": "5.0.0",
"license": "MIT",
"description": "Typescript version of the \"Immutable date wrapper\"",
"author": "Tony Samperi",
Expand All @@ -12,8 +12,15 @@
"repository": "https://github.com/tonysamperi/ts-luxon",
"homepage": "https://tonysamperi.github.io/ts-luxon/",
"main": "dist/ts-luxon.umd.js",
"module": "dist/ts-luxon.es6.js",
"typings": "dist/index.d.ts",
"type": "commonjs",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/ts-luxon.es6.mjs",
"default": "./dist/ts-luxon.umd.js"
}
},
"files": [
"dist/**",
"README.md"
Expand All @@ -31,7 +38,8 @@
"typedoc": "typedoc src/index.ts --excludePrivate --excludeProtected --out dist/api-docs ",
"benchmark": "ts-node benchmarks/index.ts",
"codecov": "codecov",
"check-doc-coverage": "grep '\"coverage\": \"100%\"' dist/docs/coverage.json"
"check-doc-coverage": "grep '\"coverage\": \"100%\"' dist/docs/coverage.json",
"publish:beta": "npm publish --tag beta"
},
"devDependencies": {
"@rollup/plugin-json": "^6.0.0",
Expand Down
5 changes: 2 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import resolve from "rollup-plugin-node-resolve";
import commonjs from "rollup-plugin-commonjs";
import sourceMaps from "rollup-plugin-sourcemaps";
// import typescript from "rollup-plugin-typescript2";
import typescript from "@rollup/plugin-typescript";
import cleaner from "rollup-plugin-cleaner";
import { uglify } from "rollup-plugin-uglify";
Expand All @@ -15,8 +14,8 @@ export default {
output: [
{ file: pkg.main, name: "tsLuxon", format: "umd", sourcemap: true },
{ file: pkg.main.replace(".js", ".min.js"), name: "tsLuxon", format: "umd", sourcemap: "inline", plugins: [uglify()] },
{ file: pkg.module, format: "es", sourcemap: true },
{ file: pkg.module.replace(".js", ".min.js"), format: "es", sourcemap: "inline", plugins: [uglify()] }
{ file: pkg.exports["."].import, format: "es", sourcemap: true },
{ file: pkg.exports["."].import.replace(".mjs", ".min.mjs"), format: "es", sourcemap: "inline", plugins: [uglify()] }
],
external: [],
watch: {
Expand Down

0 comments on commit a92cbfc

Please sign in to comment.