Skip to content

Fix file extensions in package.json #156

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

Merged
merged 1 commit into from
Jul 7, 2021
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
6 changes: 3 additions & 3 deletions docs/ts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ <h3>Node.js</h3>
<a href="#browser" id="browser" style="color: inherit; text-decoration: none;">
<h3>Browser</h3>
</a>
<p>For browser usage you can directly include <code>dist/index-browser-umd.js</code>; no Browserify
<p>For browser usage you can directly include <code>dist/index-browser-umd.cjs</code>; no Browserify
magic is necessary:</p>
<pre><code class="language-html"><span style="color: #008000">&lt;!-- Polyfill recommended by Babel for items not covered for older</span>
<span style="color: #008000"> browsers in dist --&gt;</span>
<span style="color: #800000">&lt;script</span><span style="color: #000000FF"> </span><span style="color: #FF0000">src</span><span style="color: #000000FF">=</span><span style="color: #0000FF">&quot;node_modules/core-js-bundle/minified.js&quot;</span><span style="color: #800000">&gt;&lt;/script&gt;</span>

<span style="color: #800000">&lt;script</span><span style="color: #000000FF"> </span><span style="color: #FF0000">src</span><span style="color: #000000FF">=</span><span style="color: #0000FF">&quot;node_modules/jsonpath-plus/dist/index-browser-umd.js&quot;</span><span style="color: #800000">&gt;&lt;/script&gt;</span>
<span style="color: #800000">&lt;script</span><span style="color: #000000FF"> </span><span style="color: #FF0000">src</span><span style="color: #000000FF">=</span><span style="color: #0000FF">&quot;node_modules/jsonpath-plus/dist/index-browser-umd.cjs&quot;</span><span style="color: #800000">&gt;&lt;/script&gt;</span>

<span style="color: #800000">&lt;script&gt;</span>

Expand Down Expand Up @@ -646,4 +646,4 @@ <h2>Legend</h2>
<div class="overlay"></div>
<script src="assets/js/main.js"></script>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "jsonpath-plus",
"version": "6.0.0",
"type": "module",
"main": "dist/index-node-cjs.js",
"main": "dist/index-node-cjs.cjs",
"exports": {
"./package.json": "./package.json",
".": {
Expand All @@ -14,7 +14,7 @@
"default": "./dist/index-browser-esm.js"
}
},
"module": "dist/index-node-esm.mjs",
"module": "dist/index-node-esm.js",
"browser": "dist/index-browser-esm.js",
"types": "./src/jsonpath.d.ts",
"description": "A JS implementation of JSONPath with some additional operators",
Expand Down