build-strap 6.1.0-main.174 → 6.1.0-main.175

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -17
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -10,47 +10,37 @@ This project builds itself, so take a look in the `targets/` folder for an examp
10
10
  [![devDependencies](https://img.shields.io/david/dev/murrayju/build-strap.svg)](https://david-dm.org/murrayju/build-strap?type=dev)
11
11
 
12
12
  ## Create a "zero dependency" bootstrapped build
13
- You can set up your project to build with (practically) no pre-requisite dependencies. [nub-strap](https://github.com/murrayju/nub-strap/) downloads a pinned version of [nub](https://nubjs.com) into the project. Nub then provides the pinned versions of node and yarn.
13
+ You can set up your project to build with (practically) no pre-requisite dependencies. [nub-strap](https://github.com/murrayju/nub-strap/) downloads a pinned version of [nub](https://nubjs.com) into the project. Nub then provides the pinned version of node, and is also the package manager.
14
14
  - Copy the `nub` script from nub-strap into the root of your project, and pin the nub version in it.
15
15
 
16
16
  ```
17
17
  curl -o nub https://raw.githubusercontent.com/murrayju/nub-strap/main/nub && chmod +x nub
18
18
  ```
19
19
 
20
- - Pin the node and yarn versions in your `package.json`.
20
+ - Pin the node version in your `package.json`, and set nub as the package manager (`./nub pm use nub` does this, and converts an existing lockfile to `nub.lock`).
21
21
 
22
22
  ```
23
23
  {
24
24
  "devEngines": {
25
- "runtime": { "name": "node", "version": "24.18.0" }
26
- },
27
- "packageManager": "yarn@1.22.22"
25
+ "runtime": { "name": "node", "version": "24.18.0" },
26
+ "packageManager": { "name": "nub", "version": "^0.10.0", "onFail": "ignore" }
27
+ }
28
28
  }
29
29
  ```
30
30
 
31
- - Add a `yarn` script, which runs the pinned yarn with nub.
32
-
33
- ```
34
- #!/bin/bash
35
- set -euo pipefail
36
-
37
- yarnJs=$(./nub pm which)
38
- exec ./nub --node "$yarnJs" "$@"
39
- ```
40
-
41
31
  - Add a `bs` script, which installs dependencies and runs your build targets.
42
32
 
43
33
  ```
44
34
  #!/bin/bash
45
35
 
46
- ./yarn install
36
+ ./nub install
47
37
  exec ./nub ./targets/run.ts "$@"
48
38
  ```
49
39
 
50
40
  ## Add the dependency reference
51
41
  Add `build-strap` to your `package.json` (likely in the `devDependencies` section).
52
42
  ```
53
- yarn add -D build-strap
43
+ ./nub add -D build-strap
54
44
  ```
55
45
 
56
46
  ## Add meta information to your `package.json`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "build-strap",
3
- "version": "6.1.0-main.174",
3
+ "version": "6.1.0-main.175",
4
4
  "description": "Node scripts for building things",
5
5
  "license": "MIT",
6
6
  "author": "Justin Murray <justin@murrayju.com>",
@@ -14,6 +14,9 @@
14
14
  "engines": {
15
15
  "node": ">=24"
16
16
  },
17
+ "resolutions": {
18
+ "minimatch": "^11.0.5"
19
+ },
17
20
  "dependencies": {
18
21
  "bytes": "^3.1.1",
19
22
  "chokidar": "^6.0.0",
@@ -29,8 +32,5 @@
29
32
  "rimraf": "^6.1.4",
30
33
  "stream-counter": "1",
31
34
  "tar": "^7.1.0"
32
- },
33
- "resolutions": {
34
- "minimatch": "^11.0.5"
35
35
  }
36
36
  }