9a3e7a2f50
- switch root package manager to pnpm 10.33.4 via packageManager field - add .npmrc with node-linker=hoisted for RN/Expo compatibility - convert yarn resolutions to pnpm.overrides; pin psl@1.9.0 and @types/psl@1.1.1 to keep types resolving under exports-aware resolution - pin react-compiler-runtime and babel-plugin-react-compiler to real rc.3 (the deprecated "Wrong version name was published" tag would otherwise resolve) - add pnpm.onlyBuiltDependencies allowlist for @sentry/cli, core-js-pure, esbuild, unrs-resolver - regenerate pnpm-lock.yaml; delete yarn.lock; drop postinstall-postinstall - update all workflows, Dockerfile, Dockerfile.embedr (root-level), Makefile, conductor.json; bskyembed/bskylink/bskyogcard/dev-env stay on yarn - update docs (CLAUDE.md, docs/build.md, docs/testing.md, docs/localization.md, bskyweb/README.md, scripts/push-notification/README.md, BlueskyClip/README.md) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
43 lines
1000 B
Makefile
43 lines
1000 B
Makefile
|
|
SHELL = /bin/bash
|
|
.SHELLFLAGS = -o pipefail -c
|
|
|
|
.PHONY: help
|
|
help: ## Print info about all commands
|
|
@echo "Commands:"
|
|
@echo
|
|
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[01;32m%-20s\033[0m %s\n", $$1, $$2}'
|
|
|
|
.PHONY: build-web
|
|
build-web: ## Compile web bundle, copy to bskyweb directory
|
|
pnpm intl:build
|
|
pnpm build-web
|
|
|
|
.PHONY: build-web-embed
|
|
build-web-embed: ## Compile web embed bundle, copy to bskyweb/embedr* directories
|
|
pnpm intl:build
|
|
pnpm build-embed
|
|
|
|
.PHONY: test
|
|
test: ## Run all tests
|
|
NODE_ENV=test pnpm test
|
|
|
|
.PHONY: lint
|
|
lint: ## Run style checks and verify syntax
|
|
pnpm run lint
|
|
|
|
#.PHONY: fmt
|
|
#fmt: ## Run syntax re-formatting
|
|
# pnpm prettier
|
|
|
|
.PHONY: deps
|
|
deps: ## Installs dependent libs using 'pnpm install'
|
|
pnpm install --frozen-lockfile
|
|
cd bskyembed && yarn install --frozen-lockfile
|
|
|
|
.PHONY: nvm-setup
|
|
nvm-setup: ## Use NVM to install and activate node+pnpm
|
|
nvm install 20
|
|
nvm use 20
|
|
npm install --global pnpm
|