Releases: ojkelly/yarn.build
Releases · ojkelly/yarn.build
Release v3.1.0
Have you ever wanted to write you package.json
as package.yaml
or even package.yml
?
Well now you can!*
*This is an initial seemingly stable release, but may break things - raise an issue if it does.
To install:
yarn plugin import https://yarn.build/yaml
Swap an existing package.json
over to a package.yaml
by converting it's contents to YAML, and renaming the file.
There's a heap of online tools that can do it including this one I found https://www.json2yaml.com
This plugin will transparently convert your package.yaml
back into json for all of Yarn's tooling, meaning Yarn has no idea it's not writing to a package.json
.
name: "@internal/lorem-ipsum"
version: 1.0.0
main: dist/index.js
# license, none for the example
license: UNLICENSED
private: true
# scripts comment
scripts:
build: tsc
test: jest
dev: ts-node ./src/index.ts
dependencies:
"@internal/phrase-lorem-ipsum": "workspace:*"
jest: "^26"
ts-jest: "^26.4.4"
typescript: ^4.3.5
devDependencies:
"@types/node": ^16.4.1
ts-node: ^10.1.0
"@types/jest": ^26.0.24
jest:
preset: ts-jest
# here we define our input and output
# as we defined main above, we don't need this
# if your output directory is different or not easily definable in main
# specify it here
yarn.build:
input: .
output: dist
This does work, and is being versioned alongside yarn.build. But expect bugs with non-yarn tooling.
Release v3.0.0
Compatibility with Yarn v3
Release v0.9.56
Compatible with Yarn 2
Release v0.9.55
Improved output
Release v0.9.54
Add a max concurrency option @NoxHarmonium
Release v0.9.53
BREAKING: `yarn bundle` now outputs `bundle.zip` FIX: timestamp when over 1m - Samantha-uk
Release v0.9.52
Run yarn script commands directly - icereval Reformat output to narrow display - Samantha-uk
Release v0.9.51
Fixed runaway build output - Samanatha-uk Fixed issue with bundling nested directories and the .git folder - icereval
Release v0.9.50
Updated folder config to default to whole package dir, and fixed …
Release v0.9.49
Small bug fixes.