Skip to content

Releases: ojkelly/yarn.build

Release v3.1.0

25 Jul 08:13
f87afe6
Compare
Choose a tag to compare

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

11 Jul 10:58
c571f3b
Compare
Choose a tag to compare
Compatibility with Yarn v3

Release v0.9.56

23 Apr 07:45
Compare
Choose a tag to compare

Compatible with Yarn 2

Release v0.9.55

23 Apr 06:57
15ec201
Compare
Choose a tag to compare
Improved output

Release v0.9.54

02 Mar 06:36
7189eed
Compare
Choose a tag to compare
Add a max concurrency option @NoxHarmonium

Release v0.9.53

08 Jan 01:29
54d8c28
Compare
Choose a tag to compare
BREAKING: `yarn bundle` now outputs `bundle.zip`

FIX: timestamp when over 1m - Samantha-uk

Release v0.9.52

28 Dec 05:33
0a36fa4
Compare
Choose a tag to compare
Run yarn script commands directly - icereval
Reformat output to narrow display - Samantha-uk

Release v0.9.51

27 Dec 04:19
68b57ee
Compare
Choose a tag to compare
Fixed runaway build output - Samanatha-uk
Fixed issue with bundling nested directories and the .git folder - icereval

Release v0.9.50

15 Dec 11:49
e6d7246
Compare
Choose a tag to compare
    Updated folder config to default to whole package dir, and fixed …

Release v0.9.49

15 Dec 04:03
be81dd9
Compare
Choose a tag to compare
Small bug fixes.