Skip to content

Commit

Permalink
Bump yo to 5.0.0 (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxiao-cll authored Dec 13, 2024
1 parent b09eecf commit f347bae
Show file tree
Hide file tree
Showing 5 changed files with 569 additions and 707 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ jobs:
- name: Generate new adapter, build, run the tests
run: |
yarn build
path_to_generator="$GITHUB_WORKSPACE/dist/src/generator-adapter"
npm install -g yo@4.3.1
path_to_generator="$GITHUB_WORKSPACE/dist/src/generator-adapter/generators/app/index.js"
npm install -g yo@5.0.0
# The command bellow will generate new EA with default name 'example-adapter' in specified directory 'examples'
DEBUG=* yo "$path_to_generator" examples --ignore-version-check
DEBUG=* yo "$path_to_generator" examples
cd examples/example-adapter
yarn build
yarn test
Expand Down
4 changes: 2 additions & 2 deletions scripts/adapter-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { execSync } from 'child_process'

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

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

execSync(generatorCommand, { stdio: 'inherit' })
2 changes: 1 addition & 1 deletion scripts/generator-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"extnerl-adapter-generator"
],
"devDependencies": {
"yeoman-generator": "7.3.3",
"yeoman-generator": "7.4.0",
"@yeoman/types": "1.5.0",
"mem-fs": "4.1.1",
"@yeoman/adapter": "2.0.0",
Expand Down
Loading

0 comments on commit f347bae

Please sign in to comment.