1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Expose css, link, and head in package. (#154)

* Expose next/css, next/link, and next/head.

This allows test runners like Jest and ESLint's file resolver to
be able to find exported modules within `next`.

Fixes #113

* Removed semicolons for linting and expose modules.
This commit is contained in:
Michael Helvey 2016-10-29 10:12:54 -07:00 committed by Naoyuki Kanezawa
parent 4ea933725d
commit 3fa636fa81
4 changed files with 7 additions and 1 deletions

1
css.js Normal file
View file

@ -0,0 +1 @@
module.exports = require('./dist/lib/css')

1
head.js Normal file
View file

@ -0,0 +1 @@
module.exports = require('./dist/lib/head')

1
link.js Normal file
View file

@ -0,0 +1 @@
module.exports = require('./dist/lib/link')

View file

@ -6,7 +6,10 @@
"license": "MIT",
"repository": "zeit/next.js",
"files": [
"dist"
"dist",
"link.js",
"css.js",
"head.js"
],
"bin": {
"next": "./dist/bin/next"