From f9e58b49bd42bb418872940021940d720d4b4d98 Mon Sep 17 00:00:00 2001 From: matthieu-crouzet Date: Thu, 5 Dec 2024 10:43:44 +0100 Subject: [PATCH] fix(ama-sdk-create): publish training sdk on verdaccio for it tests of ama-sdk-create --- packages/@ama-sdk/create/project.json | 3 +++ .../@o3r-training/showcase-sdk/package.json | 5 ++++- .../@o3r-training/showcase-sdk/project.json | 20 ++++++++++++++++--- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/packages/@ama-sdk/create/project.json b/packages/@ama-sdk/create/project.json index 3c6b7d4e34..26854450d1 100644 --- a/packages/@ama-sdk/create/project.json +++ b/packages/@ama-sdk/create/project.json @@ -4,6 +4,9 @@ "projectType": "library", "sourceRoot": "packages/@ama-sdk/create/src", "prefix": "o3r", + "implicitDependencies": [ + "training-showcase-sdk" + ], "targets": { "build": { "executor": "nx:run-script", diff --git a/packages/@o3r-training/showcase-sdk/package.json b/packages/@o3r-training/showcase-sdk/package.json index eb56b6eec6..9e2c590dec 100644 --- a/packages/@o3r-training/showcase-sdk/package.json +++ b/packages/@o3r-training/showcase-sdk/package.json @@ -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" @@ -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" diff --git a/packages/@o3r-training/showcase-sdk/project.json b/packages/@o3r-training/showcase-sdk/project.json index 4e8f769615..44a1693ebe 100644 --- a/packages/@o3r-training/showcase-sdk/project.json +++ b/packages/@o3r-training/showcase-sdk/project.json @@ -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", @@ -30,7 +35,16 @@ "packages/@o3r-training/showcase-sdk/package.json" ] } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "command": "npm publish packages/@o3r-training/showcase-sdk/dist" + } } }, - "tags": ["private", "showcase"] + "tags": [ + "private", + "showcase" + ] }