Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(build): bump version #30

Merged
merged 4 commits into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Andreas Pfau
Copyright (c) 2025 Andreas Pfau

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2,099 changes: 2,097 additions & 2 deletions demo/build/index.js

Large diffs are not rendered by default.

1,456 changes: 1,455 additions & 1 deletion demo/build/themes.js

Large diffs are not rendered by default.

28 changes: 27 additions & 1 deletion dist/cjs/index.js

Large diffs are not rendered by default.

28 changes: 27 additions & 1 deletion dist/cjs/react/JsonViewer.js

Large diffs are not rendered by default.

28 changes: 27 additions & 1 deletion dist/esm/index.js

Large diffs are not rendered by default.

28 changes: 27 additions & 1 deletion dist/esm/react/JsonViewer.js

Large diffs are not rendered by default.

28 changes: 27 additions & 1 deletion dist/iife/index.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import { rmSync, readFileSync } from "node:fs"
import { resolve } from "node:path"
import postcss from "postcss"
import postcssMinify from "postcss-minify"
import fs from "fs"

const licenseText = fs.readFileSync("LICENSE.md", "utf-8")

// helpers for console log
const green = "\x1b[32m%s\x1b[0m"
Expand Down Expand Up @@ -54,6 +57,13 @@ const options = {
".css": "text",
},
plugins: [cssPlugin],
banner: {
js: `
/*
${licenseText}
*/
`,
},
}

if (isProduction) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@andypf/json-viewer",
"version": "2.1.8",
"version": "2.1.9",
"description": "A javascript library to visualize json nicely",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
Loading