Skip to content

Commit f347bae

Browse files
authored
Bump yo to 5.0.0 (#353)
1 parent b09eecf commit f347bae

File tree

5 files changed

+569
-707
lines changed

5 files changed

+569
-707
lines changed

.github/workflows/main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ jobs:
8484
- name: Generate new adapter, build, run the tests
8585
run: |
8686
yarn build
87-
path_to_generator="$GITHUB_WORKSPACE/dist/src/generator-adapter"
88-
npm install -g yo@4.3.1
87+
path_to_generator="$GITHUB_WORKSPACE/dist/src/generator-adapter/generators/app/index.js"
88+
npm install -g yo@5.0.0
8989
# The command bellow will generate new EA with default name 'example-adapter' in specified directory 'examples'
90-
DEBUG=* yo "$path_to_generator" examples --ignore-version-check
90+
DEBUG=* yo "$path_to_generator" examples
9191
cd examples/example-adapter
9292
yarn build
9393
yarn test

scripts/adapter-generator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { execSync } from 'child_process'
55

66
const pathArg = process.argv[2] || ''
77

8-
const generatorPath = resolve(__dirname, './generator-adapter')
9-
const generatorCommand = `yo ${generatorPath} ${pathArg} --ignore-version-check`
8+
const generatorPath = resolve(__dirname, './generator-adapter/generators/app/index.js')
9+
const generatorCommand = `yo ${generatorPath} ${pathArg}`
1010

1111
execSync(generatorCommand, { stdio: 'inherit' })

scripts/generator-adapter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"extnerl-adapter-generator"
1212
],
1313
"devDependencies": {
14-
"yeoman-generator": "7.3.3",
14+
"yeoman-generator": "7.4.0",
1515
"@yeoman/types": "1.5.0",
1616
"mem-fs": "4.1.1",
1717
"@yeoman/adapter": "2.0.0",

0 commit comments

Comments
 (0)