diff --git a/notes/todo.todo b/notes/todo.todo index c113dc6..e240276 100644 --- a/notes/todo.todo +++ b/notes/todo.todo @@ -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 diff --git a/src/index_p5.js b/src/index_p5.js index b825635..a7c6c2f 100644 --- a/src/index_p5.js +++ b/src/index_p5.js @@ -6,8 +6,6 @@ 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 }; @@ -15,7 +13,6 @@ window.party = { Client, Room, Record }; let __client, __room; -log.log(`Hello, p5.party! v${package_json.version}`); window.p5 ? init() : log.warn("p5.js not found."); function init() {