-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for both es and cjs modules.
- Loading branch information
Miloš Brajević
committed
Nov 6, 2019
1 parent
6ef2284
commit 6e256af
Showing
27 changed files
with
32 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,3 +102,7 @@ dist | |
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# Build-generated files | ||
es | ||
lib |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
{ | ||
"name": "next-universal-route", | ||
"version": "0.6.1", | ||
"version": "0.7.0", | ||
"description": "Universal Next.js Route", | ||
"main": "index.js", | ||
"main": "./lib/index.js", | ||
"module": "./es/index.js", | ||
"modules.root": "./es", | ||
"types": "./lib/index.d.ts", | ||
"author": "Miloš Brajević <[email protected]>", | ||
"repository": "brajevicm/next-universal-route", | ||
"license": "MIT", | ||
"scripts": { | ||
"lint": "tslint -c tslint.json --project tsconfig.json", | ||
"test": "jest --config jest.config.json && codecov", | ||
"test:watch": "jest --config jest.config.json --watchAll", | ||
"build": "rimraf ./dist && tsc" | ||
"build": " rimraf ./dist && npm run build:es && npm run build:lib", | ||
"build:es": "tsc --module es2015 --target es5 --outDir es", | ||
"build:lib": "tsc --module commonjs --target es5 --outDir lib" | ||
}, | ||
"typings": "./dist/index.d.ts", | ||
"keywords": [ | ||
"react", | ||
"next", | ||
|
@@ -46,8 +50,8 @@ | |
"typescript": "^3.6.4" | ||
}, | ||
"peerDependencies": { | ||
"next": "^9", | ||
"react": "^16" | ||
"next": ">=2", | ||
"react": "^15.4.2 || ^16" | ||
}, | ||
"dependencies": { | ||
"path-to-regexp": "^3.1.0", | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { Link } from './lib/Link'; | ||
import { Router } from './lib/Router'; | ||
import { Route } from './lib/Route'; | ||
import { getRequestHandler } from './lib/getRequestHandler'; | ||
|
||
export { getRequestHandler, Route, Router, Link }; |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.