Browse Source

Fix packages.js main option

Jay Salvat 9 years ago
parent
commit
645e0ed252
2 changed files with 42 additions and 4 deletions
  1. 41 0
      npm-debug.log
  2. 1 4
      package.json

+ 41 - 0
npm-debug.log

@@ -0,0 +1,41 @@
+0 info it worked if it ends with ok
+1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'publish' ]
+2 info using [email protected]
+3 info using [email protected]
+4 verbose publish [ '.' ]
+5 silly cache add args [ '.', null ]
+6 verbose cache add spec .
+7 silly cache add parsed spec Result {
+7 silly cache add   raw: '.',
+7 silly cache add   scope: null,
+7 silly cache add   name: null,
+7 silly cache add   rawSpec: '.',
+7 silly cache add   spec: '/Users/jay/Sites/www/vegas',
+7 silly cache add   type: 'directory' }
+8 verbose addLocalDirectory /Users/jay/.npm/vegas/2.2.0/package.tgz not in flight; packing
+9 info lifecycle [email protected]~prepublish: [email protected]
+10 silly lifecycle [email protected]~prepublish: no script for prepublish, continuing
+11 verbose tar pack [ '/Users/jay/.npm/vegas/2.2.0/package.tgz',
+11 verbose tar pack   '/Users/jay/Sites/www/vegas' ]
+12 verbose tarball /Users/jay/.npm/vegas/2.2.0/package.tgz
+13 verbose folder /Users/jay/Sites/www/vegas
+14 verbose stack TypeError: Path must be a string. Received [ 'dist/vegas.min.js', 'dist/vegas.min.css' ]
+14 verbose stack     at assertPath (path.js:8:11)
+14 verbose stack     at Object.posix.resolve (path.js:426:5)
+14 verbose stack     at InstancePacker.Packer.applyIgnores (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/fstream-npm.js:109:59)
+14 verbose stack     at InstancePacker.BundledPacker.applyIgnores (/usr/local/lib/node_modules/npm/lib/utils/tar.js:135:40)
+14 verbose stack     at InstancePacker.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:181:17)
+14 verbose stack     at Array.filter (native)
+14 verbose stack     at InstancePacker.IgnoreReader.filterEntries (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:179:31)
+14 verbose stack     at InstancePacker.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:92:12)
+14 verbose stack     at InstancePacker.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:134:5)
+14 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:76:16
+15 verbose cwd /Users/jay/Sites/www/vegas
+16 error Darwin 15.2.0
+17 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "publish"
+18 error node v5.1.1
+19 error npm  v3.3.12
+20 error Path must be a string. Received [ 'dist/vegas.min.js', 'dist/vegas.min.css' ]
+21 error If you need help, you may report this error at:
+21 error     <https://github.com/npm/npm/issues>
+22 verbose exit [ 1, true ]

+ 1 - 4
package.json

@@ -5,10 +5,7 @@
   "homepage": "http://vegas.jaysalvat.com",
   "homepage": "http://vegas.jaysalvat.com",
   "author": "Jay Salvat",
   "author": "Jay Salvat",
   "license": "MIT",
   "license": "MIT",
-  "main": [
-    "dist/vegas.min.js",
-    "dist/vegas.min.css"
-  ],
+  "main": "dist/vegas.min.js",
   "repository": {
   "repository": {
     "type": "git",
     "type": "git",
     "url": "[email protected]:jaysalvat/vegas.git"
     "url": "[email protected]:jaysalvat/vegas.git"