Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"main": "dist/cli.js",
"types": "./dist/cli.d.ts",
"scripts": {
"build": "pnpm clean:dist && pnpm transpile && pnpm bundle && cp -r ./src/templates ./dist",
"build": "pnpm clean:dist && pnpm transpile && pnpm bundle && npx cpy-cli ./src/templates ./dist",
"build:ci": "pnpm run build",
"bundle": "ts-node -r dotenv/config bundle.ts",
"changeset:add": "pnpm exec changeset",
"changeset:status": "pnpm exec changeset status",
"changeset:version": "pnpm exec changeset version",
"clean": "pnpm \"/^clean:.*/\"",
"clean:dist": "rm -rf dist",
"clean:generated": "rm -rf generated",
"clean:node": "rm -rf node_modules",
"clean:dist": "npx rimraf dist",
"clean:generated": "npx rimraf generated",
"clean:node": "npx rimraf node_modules",
"format": "npx @biomejs/biome format --write --changed ./src",
"format:check": "pnpm exec biome format ./src",
"format:unsafe": "pnpm exec biome check --write --unsafe ./src",
Expand Down
6 changes: 3 additions & 3 deletions src/utils/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { readFileSync } from 'node:fs';
import path from 'node:path';

// The build distribution target directory
const BUILD_DIST_PATHNAME = '/dist';
const BUILD_DIST_PATHNAME = path.join(path.sep, 'dist');

// Fallback path is the `src` used in tests
const TEST_SRC_PATHNAME = '/src';
const TEST_SRC_PATHNAME = path.join(path.sep, 'src');

const leadingSlash = (str: string) => (str.startsWith('/') ? str : `/${str}`);
const leadingSlash = (str: string) => (str.startsWith(path.sep) ? str : `${path.sep}${str}`);

const resolvePath = (filename: string) => {
/* eslint-disable no-process-env */
Expand Down