diff --git a/loggings-test.js b/loggings-test.js deleted file mode 100644 index fd42df0..0000000 --- a/loggings-test.js +++ /dev/null @@ -1,4 +0,0 @@ -const L = require('./loggings'); - -L.i("kkk"); -L.i(L); \ No newline at end of file diff --git a/npm-debug.log b/npm-debug.log new file mode 100644 index 0000000..ecc764c --- /dev/null +++ b/npm-debug.log @@ -0,0 +1,45 @@ +0 info it worked if it ends with ok +1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'publish' ] +2 info using npm@3.5.2 +3 info using node@v8.10.0 +4 verbose run-script [ 'prepublish', 'publish', 'postpublish' ] +5 info lifecycle @elex/loggings@0.0.5~prepublish: @elex/loggings@0.0.5 +6 silly lifecycle @elex/loggings@0.0.5~prepublish: no script for prepublish, continuing +7 info lifecycle @elex/loggings@0.0.5~publish: @elex/loggings@0.0.5 +8 verbose lifecycle @elex/loggings@0.0.5~publish: unsafe-perm in lifecycle true +9 verbose lifecycle @elex/loggings@0.0.5~publish: PATH: /usr/share/npm/bin/node-gyp-bin:/media/elex/UltraFit/Workspace/js-projects/loggings/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin +10 verbose lifecycle @elex/loggings@0.0.5~publish: CWD: /media/elex/UltraFit/Workspace/js-projects/loggings +11 silly lifecycle @elex/loggings@0.0.5~publish: Args: [ '-c', 'npm publish' ] +12 silly lifecycle @elex/loggings@0.0.5~publish: Returned: code: 1 signal: null +13 info lifecycle @elex/loggings@0.0.5~publish: Failed to exec publish script +14 verbose stack Error: @elex/loggings@0.0.5 publish: `npm publish` +14 verbose stack Exit status 1 +14 verbose stack at EventEmitter. (/usr/share/npm/lib/utils/lifecycle.js:232:16) +14 verbose stack at emitTwo (events.js:126:13) +14 verbose stack at EventEmitter.emit (events.js:214:7) +14 verbose stack at ChildProcess. (/usr/share/npm/lib/utils/spawn.js:24:14) +14 verbose stack at emitTwo (events.js:126:13) +14 verbose stack at ChildProcess.emit (events.js:214:7) +14 verbose stack at maybeClose (internal/child_process.js:925:16) +14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) +15 verbose pkgid @elex/loggings@0.0.5 +16 verbose cwd /media/elex/UltraFit/Workspace/js-projects/loggings +17 error Linux 4.15.0-96-generic +18 error argv "/usr/bin/node" "/usr/bin/npm" "run" "publish" +19 error node v8.10.0 +20 error npm v3.5.2 +21 error code ELIFECYCLE +22 error @elex/loggings@0.0.5 publish: `npm publish` +22 error Exit status 1 +23 error Failed at the @elex/loggings@0.0.5 publish script 'npm publish'. +23 error Make sure you have the latest version of node.js and npm installed. +23 error If you do, this is most likely a problem with the @elex/loggings package, +23 error not with npm itself. +23 error Tell the author that this fails on your system: +23 error npm publish +23 error You can get information on how to open an issue for this project with: +23 error npm bugs @elex/loggings +23 error Or if that isn't available, you can get their info via: +23 error npm owner ls @elex/loggings +23 error There is likely additional logging output above. +24 verbose exit [ 1, true ] diff --git a/package.json b/package.json index 981dc72..fb0242c 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,12 @@ { "name": "@elex/loggings", - "version": "0.0.2", + "version": "0.0.5", "description": "Loggings", - "main": "loggings.js", + "main": "./src/loggings.js", + "module": "./src/loggings.js", "scripts": { - "test": "node loggings-test.js" + "test": "node ./src/loggings-test.js", + "publish": "npm publish" }, "keywords": [ "loggings" diff --git a/src/loggings-test.js b/src/loggings-test.js new file mode 100644 index 0000000..41fb00f --- /dev/null +++ b/src/loggings-test.js @@ -0,0 +1,5 @@ +const L = require('./loggings'); + +L.i("Hello"); +L.level = 4; +L.i("Hello 2"); \ No newline at end of file diff --git a/loggings.js b/src/loggings.js similarity index 100% rename from loggings.js rename to src/loggings.js