create-next-app
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -66,3 +66,3 @@ /** | ||
'--scripts-version <alternative-package>', | ||
'use a non-standard version of react-scripts' | ||
'use a non-standard version of next-scripts' | ||
) | ||
@@ -78,6 +78,6 @@ .allowUnknownOption() | ||
console.log( | ||
` - a custom fork published on npm: ${chalk.green('my-react-scripts')}` | ||
` - a custom fork published on npm: ${chalk.green('my-next-scripts')}` | ||
); | ||
console.log( | ||
` - a .tgz archive: ${chalk.green('https://mysite.com/my-react-scripts-0.8.2.tgz')}` | ||
` - a .tgz archive: ${chalk.green('https://mysite.com/my-next-scripts-0.8.2.tgz')}` | ||
); | ||
@@ -219,3 +219,3 @@ console.log( | ||
const packageToInstall = getInstallPackage(version); | ||
const allDependencies = ['react', 'react-dom', 'next', packageToInstall]; | ||
const allDependencies = ['react', 'react-dom', 'next', 'express', 'ngrok', packageToInstall]; | ||
@@ -245,3 +245,3 @@ console.log('Installing packages. This might take a couple minutes.'); | ||
// Since react-scripts has been installed with --save | ||
// Since next-scripts has been installed with --save | ||
// we need to move it into devDependencies and rewrite package.json | ||
@@ -309,3 +309,3 @@ // also ensure react dependencies have caret version range | ||
function getInstallPackage(version) { | ||
let packageToInstall = 'react-scripts'; | ||
let packageToInstall = 'next-scripts'; | ||
const validSemver = semver.valid(version); | ||
@@ -378,3 +378,3 @@ if (validSemver) { | ||
.catch(err => { | ||
// The package name could be with or without semver version, e.g. react-scripts-0.2.0-alpha.1.tgz | ||
// The package name could be with or without semver version, e.g. next-scripts-0.2.0-alpha.1.tgz | ||
// However, this function returns package name only without semver version. | ||
@@ -394,4 +394,4 @@ console.log( | ||
// Pull package name out of git urls e.g: | ||
// git+https://github.com/mycompany/react-scripts.git | ||
// git+ssh://github.com/mycompany/react-scripts.git#v1.2.3 | ||
// git+https://github.com/mycompany/next-scripts.git | ||
// git+ssh://github.com/mycompany/next-scripts.git#v1.2.3 | ||
return Promise.resolve(installPackage.match(/([^\/]+)\.git(#.*)?$/)[1]); | ||
@@ -466,4 +466,4 @@ } else if (installPackage.indexOf('@') > 0) { | ||
// TODO: there should be a single place that holds the dependencies | ||
const dependencies = ['react', 'react-dom']; | ||
const devDependencies = ['react-scripts']; | ||
const dependencies = ['react', 'react-dom', 'next', 'express', 'debug']; | ||
const devDependencies = ['next-scripts', 'ngrok']; | ||
const allDependencies = dependencies.concat(devDependencies).sort(); | ||
@@ -470,0 +470,0 @@ if (allDependencies.indexOf(appName) >= 0) { |
{ | ||
"name": "create-next-app", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "next", |
20478