Skip to content

Commit

Permalink
fix(ama-sdk-create): publish training sdk on verdaccio for it tests o…
Browse files Browse the repository at this point in the history
…f ama-sdk-create
  • Loading branch information
matthieu-crouzet authored and mrednic-1A committed Dec 12, 2024
1 parent 86b9b10 commit c0ef059
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
3 changes: 3 additions & 0 deletions packages/@ama-sdk/create/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"projectType": "library",
"sourceRoot": "packages/@ama-sdk/create/src",
"prefix": "o3r",
"implicitDependencies": [
"training-showcase-sdk"
],
"targets": {
"build": {
"executor": "nx:run-script",
Expand Down
5 changes: 4 additions & 1 deletion packages/@o3r-training/showcase-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"types": "index.d.ts",
"sideEffects": false,
"deprecated": "This package is intended for testing purposes only.",
"private": true,
"publishConfig": {
"access": "public"
},
"exports": {
"./package.json": {
"default": "./package.json"
Expand Down Expand Up @@ -47,6 +49,7 @@
"spec:regen": "yarn run generate --no-dry-run && amasdk-clear-index",
"files:pack": "yarn amasdk-files-pack",
"test": "jest --passWithNoTests",
"publish:package": "npm publish ./dist",
"generate:mock": "schematics ../../@ama-sdk/schematics:mock",
"doc:generate": "node scripts/override-readme.js && typedoc && node scripts/restore-readme.js",
"tools:changelog": "commit-and-tag-version"
Expand Down
26 changes: 17 additions & 9 deletions packages/@o3r-training/showcase-sdk/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@
"targets": {
"build": {
"executor": "nx:noop",
"dependsOn": ["compile"]
"dependsOn": [
"compile"
]
},
"compile": {
"executor": "nx:run-script",
"options": {
"script": "build"
},
"inputs": ["source", "^cli"]
"inputs": [
"source",
"^cli"
]
},
"regen": {
"executor": "nx:run-script",
Expand All @@ -23,14 +28,17 @@
}
},
"lint": {
"executor": "nx:run-commands"
},
"publish": {
"executor": "nx:run-commands",
"options": {
"eslintConfig": "packages/@o3r-training/showcase-sdk/.eslintrc.js",
"lintFilePatterns": [
"packages/@o3r-training/showcase-sdk/src/**/*.ts",
"packages/@o3r-training/showcase-sdk/package.json"
]
"command": "npm publish packages/@o3r-training/showcase-sdk/dist"
}
}
},
"tags": ["private", "showcase"]
}
"tags": [
"private",
"showcase"
]
}

0 comments on commit c0ef059

Please sign in to comment.