futil-js / contexture-core

Contexture DSL Processor
MIT License
21 stars 1 forks source link

Fix package publishing #86

Closed stellarhoof closed 1 year ago

stellarhoof commented 1 year ago

This library is being used by contexture-react in a browser setting, so we have to ship a version that works in the browser as well as in node.

If anyone is curious, here's a good article explaining the situation: https://www.sensedeep.com/blog/posts/2021/how-to-create-single-source-npm-module.html

decrapifier commented 1 year ago
Warnings
:warning: :exclamation: This PR is BIG (+577 -47) Please keep it below 500 net changes

Coverage Report

:+1: Test coverage is looking good.

Files % Stmts % Branch % Funcs % Lines Uncovered Lines
src/dataStrategies.js 85 100 83.33 85 28, 29, 30, 31, 32, 33, 34, 35, 36 :white_check_mark:
src/exampleTypes.js 87.76 80 100 87.76 10, 11, 12, 13, 14, 15 :white_check_mark:
src/index.js 94.74 93.33 100 94.74 48, 49, 58, 59 :white_check_mark:
and 7 more... |Files|% Stmts|% Branch|% Funcs|% Lines|Uncovered Lines|| |---|:-:|:-:|:-:|:-:|:-:|:-:| |[src/utils.js](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/utils.js)|84.95|94.59|100|84.95|[44](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/utils.js#L44), [45](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/utils.js#L45), [46](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/utils.js#L46), [47](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/utils.js#L47), [48](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/utils.js#L48), [49](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/utils.js#L49), [64](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/utils.js#L64), [65](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/utils.js#L65), [66](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/utils.js#L66), [67](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/utils.js#L67)...|:white_check_mark:| |[src/__data__/imdb.js](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/__data__/imdb.js)|100|100|100|100||:white_check_mark:| |[src/provider-debug/index.js](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-debug/index.js)|100|100|100|100||:white_check_mark:| |[src/provider-memory/date.js](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/date.js)|94.55|94.44|60|94.55|[9](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/date.js#L9), [10](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/date.js#L10), [11](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/date.js#L11), [64](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/date.js#L64), [65](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/date.js#L65), [66](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/date.js#L66)|:white_check_mark:| |[src/provider-memory/
exampleTypes.js](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/exampleTypes.js)|91.26|92|82.35|91.26|[16](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/exampleTypes.js#L16), [17](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/exampleTypes.js#L17), [18](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/exampleTypes.js#L18), [96](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/exampleTypes.js#L96), [97](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/exampleTypes.js#L97), [98](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/exampleTypes.js#L98), [99](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/exampleTypes.js#L99), [100](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/exampleTypes.js#L100), [101](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/exampleTypes.js#L101)|:white_check_mark:| |[src/provider-memory/
index.js](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/index.js)|100|75|100|100||:white_check_mark:| |[src/provider-memory/
results.js](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/results.js)|94.44|66.67|100|94.44|[14](../blob/15c21a0cb84fe574bedf254ffdff079e87919ccc/src/provider-memory/results.js#L14)|:white_check_mark:|

Generated by :no_entry_sign: dangerJS against 15c21a0cb84fe574bedf254ffdff079e87919ccc