1.0.2 • Published 7 years ago

@bcoe/test-alternate-main v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
7 years ago

test alternate main

Test specifying an alternate main:

package.json:

{
  "name": "@bcoe/test-alternate-main",
  "version": "1.0.1",
  "description": "teting a scoped package search (abc123)",
  "main": "foo.min.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "Ben Coe <ben@npmjs.com>",
  "license": "ISC",
  "dependencies": {
  },
  "repository": {
   "url": "https://github.com/bcoe-test/testing-publishes.git"
  }
}

index.js:

module.exports = {donotload: 'me'}

foo.min.js:

module.exports = {test: 'two'}
Benjamins-MacBook-Pro:tmp benjamincoe$ npm i  @bcoe/test-alternate-main
@bcoe/test-alternate-main@1.0.1 node_modules/@bcoe/test-alternate-main
Benjamins-MacBook-Pro:tmp benjamincoe$ node
> require('@bcoe/test-alternate-main')
{ test: 'two' }
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago