UNPKG

@telefonica/opensource-scaffold

Version:

Scaffolding for open source projects. A CLI tool to create open source repositories with standard tools and resources

13 lines (12 loc) 428 B
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital // SPDX-License-Identifier: Apache-2.0 import { resolve } from "path"; const _dirname = import.meta.dirname; /** * Resolve the path of a package resource, from the package root * @param resourcePath The path of the resource * @returns The resolved path */ export function packageResourcePath(resourcePath) { return resolve(_dirname, "..", resourcePath); }