Skip to content

Commit

Permalink
remove package version logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jbakse committed Jan 28, 2022
1 parent e07f56a commit ea7b6fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions notes/todo.todo
Expand Up @@ -77,6 +77,7 @@
-- Can bake package version into code somehow?
I frequently think it would be nice if dist/lib.js had a comment at the top like /* p5.party v1.2.3 */
When you copy a dep into a project (rather than using npm or something) its easy forget what version it is
https://www.npmjs.com/package/genversion

# Examples

Expand Down
3 changes: 0 additions & 3 deletions src/index_p5.js
Expand Up @@ -6,16 +6,13 @@ import { Client } from "./Client";
import { Room } from "./Room";
import { Record } from "./Record";

import package_json from "../package.json";

// @todo remove this export?
window.party = { Client, Room, Record };

/* globals p5 */

let __client, __room;

log.log(`Hello, p5.party! v${package_json.version}`);
window.p5 ? init() : log.warn("p5.js not found.");

function init() {
Expand Down

0 comments on commit ea7b6fd

Please sign in to comment.