Skip to content

Commit

Permalink
Removing browser from package.json to address a webpack interop i…
Browse files Browse the repository at this point in the history
…ssue with the `dist` outputs, adding `test-webpack` npm script, updating `.gitignore`
  • Loading branch information
avoidwork committed Oct 5, 2022
1 parent c422fb9 commit 58c5d63
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 60 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
/node_modules/
/test/webpack/
.idea
*.tgz
2 changes: 1 addition & 1 deletion dist/tiny-lru.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2022 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 9.0.2
* @version 9.0.3
*/
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion dist/tiny-lru.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2022 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 9.0.2
* @version 9.0.3
*/
class LRU {
constructor (max = 0, ttl = 0) {
Expand Down
2 changes: 1 addition & 1 deletion dist/tiny-lru.esm.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tiny-lru.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2022 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 9.0.2
* @version 9.0.3
*/
(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?f(exports):typeof define==='function'&&define.amd?define(['exports'],f):(g=typeof globalThis!=='undefined'?globalThis:g||self,f(g.lru={}));})(this,(function(exports){'use strict';class LRU {
constructor (max = 0, ttl = 0) {
Expand Down
2 changes: 1 addition & 1 deletion dist/tiny-lru.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

104 changes: 52 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tiny-lru",
"description": "Tiny LRU cache for Client or Server",
"version": "9.0.2",
"version": "9.0.3",
"homepage": "https://github.com/avoidwork/tiny-lru",
"author": "Jason Mulligan <jason.mulligan@avoidwork.com>",
"repository": {
Expand All @@ -17,7 +17,6 @@
],
"license": "BSD-3-Clause",
"source": "src/lru.js",
"browser": "dist/tiny-lru.js",
"main": "dist/tiny-lru.cjs",
"module": "dist/tiny-lru.esm.js",
"type": "module",
Expand All @@ -35,6 +34,7 @@
"mocha": "mocha test/*.js",
"rollup": "rollup --config",
"test": "npm run lint && npm run mocha",
"test-webpack": "rm -rf test/webpack && git clone git@github.com:rabelais88/typescript-webpack.git test/webpack && echo \"import { lru } from 'tiny-lru';console.log(lru(1));\" >> test/webpack/src/index.ts && cd test/webpack && npm install && mkdir -p node_modules/tiny-lru/dist && cp ../../package.json node_modules/tiny-lru/ && cp ../../dist/* node_modules/tiny-lru/dist/ && npm run build",
"types": "npx -p typescript tsc src/*.js --declaration --allowJs --emitDeclarationOnly --outDir ."
},
"devDependencies": {
Expand Down

0 comments on commit 58c5d63

Please sign in to comment.