@contentful/cra-template-create-contentful-app
Advanced tools
Comparing version 0.1.5 to 0.1.6
/* eslint-disable no-console, no-process-exit */ | ||
const chalk = require('chalk'); | ||
const spawn = require('cross-spawn'); | ||
const open = require('open'); | ||
const inquirer = require('inquirer'); | ||
@@ -9,3 +9,2 @@ | ||
try { | ||
const mainCommand = 'open'; | ||
const redirectUrl = 'https://www.contentful.com/developers/cli-oauth-page/'; | ||
@@ -16,6 +15,9 @@ const CLIENT_ID = '9f86a1d54f3d6f85c159468f5919d6e5d27716b3ed68fd01bd534e3dea2df864'; | ||
)}`; | ||
const args = [oauthUrl]; | ||
spawn(mainCommand, args, { | ||
silent: true | ||
}); | ||
try { | ||
open(oauthUrl); | ||
} catch (err) { | ||
console.log(`${chalk.red('Error:')} Failed to open browser`); | ||
console.log(err.message); | ||
throw err; | ||
} | ||
@@ -22,0 +24,0 @@ const { mgmtToken } = await inquirer.prompt([ |
{ | ||
"name": "@contentful/cra-template-create-contentful-app", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "A template for building Contentful Apps", | ||
@@ -62,2 +62,3 @@ "author": "Contentful GmbH", | ||
"inquirer": "^7.2.0", | ||
"open": "^7.0.2", | ||
"tildify": "^2.0.0" | ||
@@ -64,0 +65,0 @@ }, |
{ | ||
"package": { | ||
"dependencies": { | ||
"@contentful/field-editor-single-line": "^0.8.4", | ||
"@contentful/field-editor-test-utils": "^0.6.4", | ||
"@contentful/forma-36-fcss": "^0.0.35", | ||
"@contentful/forma-36-react-components": "^3.39.7", | ||
"@contentful/forma-36-tokens": "^0.5.3", | ||
"@testing-library/jest-dom": "^5.10.0", | ||
"@testing-library/react": "^10.2.1", | ||
"@testing-library/user-event": "^12.0.1", | ||
"@types/jest": "^25.2.3", | ||
"@types/node": "^12.0.0", | ||
"@types/react": "^16.9.0", | ||
"@types/react-dom": "^16.9.0", | ||
"contentful-ui-extensions-sdk": "3.18.0", | ||
"typescript": "^3.8.0" | ||
"@contentful/field-editor-single-line": "^0.10.1", | ||
"@contentful/field-editor-test-utils": "^0.8.1", | ||
"@contentful/forma-36-fcss": "^0.2.7", | ||
"@contentful/forma-36-react-components": "^3.49.1", | ||
"@contentful/forma-36-tokens": "^0.8.0", | ||
"@testing-library/jest-dom": "^5.11.4", | ||
"@testing-library/react": "^10.4.9", | ||
"@testing-library/user-event": "^12.1.3", | ||
"@types/jest": "^26.0.10", | ||
"@types/node": "^14.6.1", | ||
"@types/react": "^16.9.48", | ||
"@types/react-dom": "^16.9.8", | ||
"contentful-ui-extensions-sdk": "^3.20.0", | ||
"typescript": "^4.0.2" | ||
} | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25763
556
8
+ Addedopen@^7.0.2
+ Addedis-docker@2.2.1(transitive)
+ Addedis-wsl@2.2.0(transitive)
+ Addedopen@7.4.2(transitive)