Skip to content

feat: add cli to ama-sdk core #3125

feat: add cli to ama-sdk core

feat: add cli to ama-sdk core #3125

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / IT Tests report-ubuntu-latest-npm failed Oct 18, 2023 in 0s

IT Tests report-ubuntu-latest-npm ❌

Tests failed

Report Passed Failed Skipped Time
@ama-sdk/create/dist-test/it-report.xml 2❌ 163s
@ama-sdk/generator-sdk/dist-test/it-report.xml 1✅ 198s
@ama-sdk/schematics/dist-test/it-report.xml 3ms
@o3r/analytics/dist-test/it-report.xml 2✅ 295s
@o3r/apis-manager/dist-test/it-report.xml 1✅ 98s
@o3r/components/dist-test/it-report.xml 1✅ 90s
@o3r/configuration/dist-test/it-report.xml 1✅ 92s
@o3r/core/dist-test/it-report.xml 2✅ 740s
@o3r/extractors/dist-test/it-report.xml 1✅ 189s
@o3r/localization/dist-test/it-report.xml 1✅ 111s
@o3r/rules-engine/dist-test/it-report.xml 1✅ 119s
@o3r/styling/dist-test/it-report.xml 1✅ 105s
@o3r/testing/dist-test/it-report.xml 1✅ 85s

❌ @ama-sdk/create/dist-test/it-report.xml

2 tests were completed in 163s with 0 passed, 2 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Create new sdk command 2❌ 163s

❌ Create new sdk command

Create new sdk command should generate a full SDK when the specification is provided
  ❌ Create new sdk command should generate a full SDK when the specification is provided
	Error: expect(received).not.toThrow()
Create new sdk command should generate an empty SDK ready to be used
  ❌ Create new sdk command should generate an empty SDK ready to be used
	Error: expect(received).not.toThrow()

✅ @ama-sdk/generator-sdk/dist-test/it-report.xml

1 tests were completed in 198s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
@ama-sdk/sdk:create 1✅ 198s

✅ @ama-sdk/sdk:create

@ama-sdk/sdk:create should generate a working SDK
  ✅ @ama-sdk/sdk:create should generate a working SDK

✅ @ama-sdk/schematics/dist-test/it-report.xml

No tests found

✅ @o3r/analytics/dist-test/it-report.xml

2 tests were completed in 295s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
new otter application with analytics 2✅ 295s

✅ new otter application with analytics

new otter application with analytics standalone should add analytics to existing application
  ✅ new otter application with analytics standalone should add analytics to existing application
new otter application with analytics monorepo should add analytics to existing application
  ✅ new otter application with analytics monorepo should add analytics to existing application

✅ @o3r/apis-manager/dist-test/it-report.xml

1 tests were completed in 98s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
new otter application with apis-manager 1✅ 98s

✅ new otter application with apis-manager

new otter application with apis-manager should add apis-manager to existing application
  ✅ new otter application with apis-manager should add apis-manager to existing application

✅ @o3r/components/dist-test/it-report.xml

1 tests were completed in 90s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
new otter application with components 1✅ 90s

✅ new otter application with components

new otter application with components should add components to existing application
  ✅ new otter application with components should add components to existing application

✅ @o3r/configuration/dist-test/it-report.xml

1 tests were completed in 92s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
new otter application with configuration 1✅ 92s

✅ new otter application with configuration

new otter application with configuration should add configuration to existing application
  ✅ new otter application with configuration should add configuration to existing application

✅ @o3r/core/dist-test/it-report.xml

2 tests were completed in 740s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
new otter application 2✅ 740s

✅ new otter application

new otter application standalone should build empty app
  ✅ new otter application standalone should build empty app
new otter application monorepo should build empty app
  ✅ new otter application monorepo should build empty app

✅ @o3r/extractors/dist-test/it-report.xml

1 tests were completed in 189s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
new otter application with extractors 1✅ 189s

✅ new otter application with extractors

new otter application with extractors should add extractors to existing application
  ✅ new otter application with extractors should add extractors to existing application

✅ @o3r/localization/dist-test/it-report.xml

1 tests were completed in 111s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
new otter application with localization 1✅ 111s

✅ new otter application with localization

new otter application with localization should add localization to existing application
  ✅ new otter application with localization should add localization to existing application

✅ @o3r/rules-engine/dist-test/it-report.xml

1 tests were completed in 119s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
new otter application with rules-engine 1✅ 119s

✅ new otter application with rules-engine

new otter application with rules-engine should add rules engine to existing application
  ✅ new otter application with rules-engine should add rules engine to existing application

✅ @o3r/styling/dist-test/it-report.xml

1 tests were completed in 105s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
new otter application with styling 1✅ 105s

✅ new otter application with styling

new otter application with styling should add styling to existing application
  ✅ new otter application with styling should add styling to existing application

✅ @o3r/testing/dist-test/it-report.xml

1 tests were completed in 85s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
new otter application with testing 1✅ 85s

✅ new otter application with testing

new otter application with testing should add testing to existing application
  ✅ new otter application with testing should add testing to existing application

Annotations

Check failure on line 68 in packages/@o3r/test-helpers/src/utilities/package-manager.ts

See this annotation in the file changed.

@github-actions github-actions / IT Tests report-ubuntu-latest-npm

Create new sdk command ► Create new sdk command should generate a full SDK when the specification is provided ► Create new sdk command should generate a full SDK when the specification is provided

Failed test found in:
  @ama-sdk/create/dist-test/it-report.xml
Error:
  Error: expect(received).not.toThrow()
Raw output
Error: expect(received).not.toThrow()

Error name:    "Error"
Error message: "Command failed: npm run build
STDERR:
node:fs:2969
  handleErrorFromBinding(ctx);
  ^·
Error: ENOENT: no such file or directory, copyfile '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json' -> '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json'
    at copyFileSync (node:fs:2969:3)
    at copyToDist (/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:60:43)
    at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:36
    at Array.forEach (<anonymous>)
    at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:18
    at Array.map (<anonymous>)
    at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:63:26
    at Object.<anonymous> (/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:80:3)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) {
  errno: -2,
  syscall: 'copyfile',
  code: 'ENOENT',
  path: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json',
  dest: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json'
}·
Node.js v18.18.2·
OUTPUT:
,
> @my-test/[email protected] build
> npm run build:cjs && npm run build:esm2015 && npm run build:esm2020 && npm run files:pack··
> @my-test/[email protected] build:cjs
> swc src -d dist/cjs -C module.type=commonjs -q··
> @my-test/[email protected] build:esm2015
> swc src -d dist/esm2015 -C module.type=es6 -q··
> @my-test/[email protected] build:esm2020
> tsc -b tsconfigs/esm2020··
> @my-test/[email protected] files:pack
> amasdk-files-pack·
/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/package.json copied to /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/package.json
/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json copied to /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json
,node:fs:2969
  handleErrorFromBinding(ctx);
  ^·
Error: ENOENT: no such file or directory, copyfile '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json' -> '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json'
    at copyFileSync (node:fs:2969:3)
    at copyToDist (/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:60:43)
    at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:36
    at Array.forEach (<anonymous>)
    at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:18
    at Array.map (<anonymous>)
    at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:63:26
    at Object.<anonymous> (/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:80:3)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) {
  errno: -2,
  syscall: 'copyfile',
  code: 'ENOENT',
  path: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json',
  dest: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json'
}·
Node.js v18.18.2
"

      at copyToDist (../it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:60:43)
      at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:36
          at Array.forEach (<anonymous>)
      at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:18
          at Array.map (<anonymous>)
      at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:63:26
      at Object.<anonymous> (../it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:80:3)
          at Module._compile (node:internal/modules/cjs/loader:1256:14)
          at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) {
        errno: -2,
        syscall: 'copyfile',
        code: 'ENOENT',
        path: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json',
        dest: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json'
      }
      Node.js v18.18.2
      OUTPUT:
      ,
      > @my-test/[email protected] build
      > npm run build:cjs && npm run build:esm2015 && npm run build:esm2020 && npm run files:pack
      > @my-test/[email protected] build:cjs
      > swc src -d dist/cjs -C module.type=commonjs -q
      > @my-test/[email protected] build:esm2015
      > swc src -d dist/esm2015 -C module.type=es6 -q
      > @my-test/[email protected] build:esm2020
      > tsc -b tsconfigs/esm2020
      > @my-test/[email protected] files:pack
      > amasdk-files-pack
      /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/package.json copied to /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/package.json
      /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json copied to /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json
      ,node:fs:2969
        handleErrorFromBinding(ctx);
        ^
      Error: ENOENT: no such file or directory, copyfile '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json' -> '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json'
          at copyFileSync (node:fs:2969:3)
      at copyToDist (../it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:60:43)
      at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:36
          at Array.forEach (<anonymous>)
      at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:18
          at Array.map (<anonymous>)
      at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:63:26
      at Object.<anonymous> (../it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:80:3)
          at Module._compile (node:internal/modules/cjs/loader:1256:14)
          at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) {
        errno: -2,
        syscall: 'copyfile',
        code: 'ENOENT',
        path: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json',
        dest: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json'
      }
      Node.js v18.18.2
      at execCmd (packages/@o3r/test-helpers/src/utilities/package-manager.ts:68:11)
      at packageManagerRun (packages/@o3r/test-helpers/src/utilities/package-manager.ts:132:10)
      at packages/@ama-sdk/create/src/index.it.spec.ts:50:35
      at Object.<anonymous> (.yarn/cache/expect-npm-29.7.0-62e9f7979e-9257f10288.zip/node_modules/expect/build/toThrowMatchers.js:74:11)
      at Object.throwingMatcher [as toThrow] (.yarn/cache/expect-npm-29.7.0-62e9f7979e-9257f10288.zip/node_modules/expect/build/index.js:320:21)
      at Object.<anonymous> (packages/@ama-sdk/create/src/index.it.spec.ts:50:94)
    at Object.<anonymous> (/home/runner/work/otter/otter/packages/@ama-sdk/create/src/index.it.spec.ts:50:94)
    at Promise.then.completed (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-f0405778ea.zip/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-f0405778ea.zip/node_modules/jest-runner/build/runTest.js:444:34)

Check failure on line 68 in packages/@o3r/test-helpers/src/utilities/package-manager.ts

See this annotation in the file changed.

@github-actions github-actions / IT Tests report-ubuntu-latest-npm

Create new sdk command ► Create new sdk command should generate an empty SDK ready to be used ► Create new sdk command should generate an empty SDK ready to be used

Failed test found in:
  @ama-sdk/create/dist-test/it-report.xml
Error:
  Error: expect(received).not.toThrow()
Raw output
Error: expect(received).not.toThrow()

Error name:    "Error"
Error message: "Command failed: npm run build
STDERR:
node:fs:2969
  handleErrorFromBinding(ctx);
  ^·
Error: ENOENT: no such file or directory, copyfile '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json' -> '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json'
    at copyFileSync (node:fs:2969:3)
    at copyToDist (/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:60:43)
    at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:36
    at Array.forEach (<anonymous>)
    at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:18
    at Array.map (<anonymous>)
    at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:63:26
    at Object.<anonymous> (/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:80:3)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) {
  errno: -2,
  syscall: 'copyfile',
  code: 'ENOENT',
  path: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json',
  dest: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json'
}·
Node.js v18.18.2·
OUTPUT:
,
> @my-test/[email protected] build
> npm run build:cjs && npm run build:esm2015 && npm run build:esm2020 && npm run files:pack··
> @my-test/[email protected] build:cjs
> swc src -d dist/cjs -C module.type=commonjs -q··
> @my-test/[email protected] build:esm2015
> swc src -d dist/esm2015 -C module.type=es6 -q··
> @my-test/[email protected] build:esm2020
> tsc -b tsconfigs/esm2020··
> @my-test/[email protected] files:pack
> amasdk-files-pack·
/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/package.json copied to /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/package.json
/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json copied to /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json
,node:fs:2969
  handleErrorFromBinding(ctx);
  ^·
Error: ENOENT: no such file or directory, copyfile '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json' -> '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json'
    at copyFileSync (node:fs:2969:3)
    at copyToDist (/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:60:43)
    at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:36
    at Array.forEach (<anonymous>)
    at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:18
    at Array.map (<anonymous>)
    at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:63:26
    at Object.<anonymous> (/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:80:3)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) {
  errno: -2,
  syscall: 'copyfile',
  code: 'ENOENT',
  path: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json',
  dest: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json'
}·
Node.js v18.18.2
"

      at copyToDist (../it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:60:43)
      at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:36
          at Array.forEach (<anonymous>)
      at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:18
          at Array.map (<anonymous>)
      at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:63:26
      at Object.<anonymous> (../it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:80:3)
          at Module._compile (node:internal/modules/cjs/loader:1256:14)
          at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) {
        errno: -2,
        syscall: 'copyfile',
        code: 'ENOENT',
        path: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json',
        dest: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json'
      }
      Node.js v18.18.2
      OUTPUT:
      ,
      > @my-test/[email protected] build
      > npm run build:cjs && npm run build:esm2015 && npm run build:esm2020 && npm run files:pack
      > @my-test/[email protected] build:cjs
      > swc src -d dist/cjs -C module.type=commonjs -q
      > @my-test/[email protected] build:esm2015
      > swc src -d dist/esm2015 -C module.type=es6 -q
      > @my-test/[email protected] build:esm2020
      > tsc -b tsconfigs/esm2020
      > @my-test/[email protected] files:pack
      > amasdk-files-pack
      /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/package.json copied to /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/package.json
      /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json copied to /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json
      ,node:fs:2969
        handleErrorFromBinding(ctx);
        ^
      Error: ENOENT: no such file or directory, copyfile '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json' -> '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json'
          at copyFileSync (node:fs:2969:3)
      at copyToDist (../it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:60:43)
      at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:36
          at Array.forEach (<anonymous>)
      at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:73:18
          at Array.map (<anonymous>)
      at /home/runner/work/otter/it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:63:26
      at Object.<anonymous> (../it-tests/test-sdk/my-test/sdk/node_modules/@ama-sdk/core/cli/files-pack.cjs:80:3)
          at Module._compile (node:internal/modules/cjs/loader:1256:14)
          at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) {
        errno: -2,
        syscall: 'copyfile',
        code: 'ENOENT',
        path: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/src/helpers/package.json',
        dest: '/home/runner/work/otter/it-tests/test-sdk/my-test/sdk/dist/src/helpers/package.json'
      }
      Node.js v18.18.2
      at execCmd (packages/@o3r/test-helpers/src/utilities/package-manager.ts:68:11)
      at packageManagerRun (packages/@o3r/test-helpers/src/utilities/package-manager.ts:132:10)
      at packages/@ama-sdk/create/src/index.it.spec.ts:55:35
      at Object.<anonymous> (.yarn/cache/expect-npm-29.7.0-62e9f7979e-9257f10288.zip/node_modules/expect/build/toThrowMatchers.js:74:11)
      at Object.throwingMatcher [as toThrow] (.yarn/cache/expect-npm-29.7.0-62e9f7979e-9257f10288.zip/node_modules/expect/build/index.js:320:21)
      at Object.<anonymous> (packages/@ama-sdk/create/src/index.it.spec.ts:55:94)
    at Object.<anonymous> (/home/runner/work/otter/otter/packages/@ama-sdk/create/src/index.it.spec.ts:55:94)
    at Promise.then.completed (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-3494371489.zip/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-f0405778ea.zip/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-f0405778ea.zip/node_modules/jest-runner/build/runTest.js:444:34)