@form8ion/lerna 2.1.1 → 3.0.0-beta.1
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.
- package/README.md +8 -5
- package/example.js +1 -1
- package/lib/index.cjs.js +3 -9
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.es.js +2 -2
- package/lib/index.es.js.map +1 -1
- package/package.json +47 -47
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@ opinionated scaffolder for monorepos managed with [Lerna](https://lerna.js.org/)
|
|
|
6
6
|
|
|
7
7
|
[![Node CI Workflow Status][github-actions-ci-badge]][github-actions-ci-link]
|
|
8
8
|
[![Codecov][coverage-badge]][coverage-link]
|
|
9
|
+
![SLSA Level 2][slsa-badge]
|
|
9
10
|
|
|
10
11
|
<!--status-badges end -->
|
|
11
12
|
|
|
@@ -92,19 +93,19 @@ $ npm test
|
|
|
92
93
|
|
|
93
94
|
[semantic-release-link]: https://github.com/semantic-release/semantic-release
|
|
94
95
|
|
|
95
|
-
[semantic-release-badge]: https://img.shields.io/badge
|
|
96
|
+
[semantic-release-badge]: https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release
|
|
96
97
|
|
|
97
98
|
[renovate-link]: https://renovatebot.com
|
|
98
99
|
|
|
99
|
-
[renovate-badge]: https://img.shields.io/badge/renovate-enabled-brightgreen.svg?logo=
|
|
100
|
+
[renovate-badge]: https://img.shields.io/badge/renovate-enabled-brightgreen.svg?logo=renovatebot
|
|
100
101
|
|
|
101
102
|
[github-actions-ci-link]: https://github.com/form8ion/lerna/actions?query=workflow%3A%22Node.js+CI%22+branch%3Amaster
|
|
102
103
|
|
|
103
|
-
[github-actions-ci-badge]: https://
|
|
104
|
+
[github-actions-ci-badge]: https://img.shields.io/github/actions/workflow/status/form8ion/lerna/node-ci.yml.svg?branch=master&logo=github
|
|
104
105
|
|
|
105
106
|
[coverage-link]: https://codecov.io/github/form8ion/lerna
|
|
106
107
|
|
|
107
|
-
[coverage-badge]: https://img.shields.io/codecov/c/github/form8ion/lerna
|
|
108
|
+
[coverage-badge]: https://img.shields.io/codecov/c/github/form8ion/lerna?logo=codecov
|
|
108
109
|
|
|
109
110
|
[license-link]: LICENSE
|
|
110
111
|
|
|
@@ -112,8 +113,10 @@ $ npm test
|
|
|
112
113
|
|
|
113
114
|
[npm-link]: https://www.npmjs.com/package/@form8ion/lerna
|
|
114
115
|
|
|
115
|
-
[npm-badge]: https://img.shields.io/npm/v/@form8ion/lerna
|
|
116
|
+
[npm-badge]: https://img.shields.io/npm/v/@form8ion/lerna?logo=npm
|
|
116
117
|
|
|
117
118
|
[runkit-link]: https://npm.runkit.com/@form8ion/lerna
|
|
118
119
|
|
|
119
120
|
[runkit-badge]: https://badge.runkitcdn.com/@form8ion/lerna.svg
|
|
121
|
+
|
|
122
|
+
[slsa-badge]: https://slsa.dev/images/gh-badge-level2.svg
|
package/example.js
CHANGED
package/lib/index.cjs.js
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var deepmerge = require('deepmerge');
|
|
6
4
|
var core = require('@form8ion/core');
|
|
7
5
|
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
var deepmerge__default = /*#__PURE__*/_interopDefaultLegacy(deepmerge);
|
|
11
|
-
|
|
12
6
|
async function scaffoldLerna ({projectRoot, packageManager}) {
|
|
13
7
|
await core.writeConfigFile({
|
|
14
8
|
format: core.fileTypes.JSON,
|
|
@@ -18,7 +12,7 @@ async function scaffoldLerna ({projectRoot, packageManager}) {
|
|
|
18
12
|
});
|
|
19
13
|
|
|
20
14
|
return {
|
|
21
|
-
|
|
15
|
+
dependencies: {javascript: {development: ['lerna']}},
|
|
22
16
|
scripts: {
|
|
23
17
|
bootstrap: 'lerna bootstrap',
|
|
24
18
|
'test:packages': 'lerna run --parallel test',
|
|
@@ -38,7 +32,7 @@ async function scaffoldLerna ({projectRoot, packageManager}) {
|
|
|
38
32
|
|
|
39
33
|
function scaffoldRelease () {
|
|
40
34
|
return {
|
|
41
|
-
|
|
35
|
+
dependencies: {javascript: {development: ['semantic-release', 'semantic-release-monorepo']}},
|
|
42
36
|
scripts: {
|
|
43
37
|
release: 'lerna exec --concurrency 1 -- npx semantic-release --extends semantic-release-monorepo'
|
|
44
38
|
}
|
|
@@ -46,7 +40,7 @@ function scaffoldRelease () {
|
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
async function scaffold ({projectRoot, packageManager}) {
|
|
49
|
-
return
|
|
43
|
+
return deepmerge.all(await Promise.all([scaffoldLerna({projectRoot, packageManager}), scaffoldRelease()]));
|
|
50
44
|
}
|
|
51
45
|
|
|
52
46
|
exports.scaffold = scaffold;
|
package/lib/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../src/lerna.js","../src/release.js","../src/scaffold.js"],"sourcesContent":["import {fileTypes, writeConfigFile} from '@form8ion/core';\n\nexport default async function ({projectRoot, packageManager}) {\n await writeConfigFile({\n format: fileTypes.JSON,\n name: 'lerna',\n path: projectRoot,\n config: {version: 'independent', packages: ['packages/*'], npmClient: packageManager}\n });\n\n return {\n
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/lerna.js","../src/release.js","../src/scaffold.js"],"sourcesContent":["import {fileTypes, writeConfigFile} from '@form8ion/core';\n\nexport default async function ({projectRoot, packageManager}) {\n await writeConfigFile({\n format: fileTypes.JSON,\n name: 'lerna',\n path: projectRoot,\n config: {version: 'independent', packages: ['packages/*'], npmClient: packageManager}\n });\n\n return {\n dependencies: {javascript: {development: ['lerna']}},\n scripts: {\n bootstrap: 'lerna bootstrap',\n 'test:packages': 'lerna run --parallel test',\n 'test:packages:since': 'lerna run --parallel test --since HEAD'\n },\n badges: {\n contribution: {\n lerna: {\n text: 'lerna',\n link: 'https://lerna.js.org/',\n img: 'https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg'\n }\n }\n }\n };\n}\n","export default function () {\n return {\n dependencies: {javascript: {development: ['semantic-release', 'semantic-release-monorepo']}},\n scripts: {\n release: 'lerna exec --concurrency 1 -- npx semantic-release --extends semantic-release-monorepo'\n }\n };\n}\n","import deepmerge from 'deepmerge';\n\nimport scaffoldLerna from './lerna.js';\nimport scaffoldRelease from './release.js';\n\nexport default async function ({projectRoot, packageManager}) {\n return deepmerge.all(await Promise.all([scaffoldLerna({projectRoot, packageManager}), scaffoldRelease()]));\n}\n"],"names":["writeConfigFile","fileTypes"],"mappings":";;;;;AAEe,4BAAc,EAAE,CAAC,WAAW,EAAE,cAAc,CAAC,EAAE;AAC9D,EAAE,MAAMA,oBAAe,CAAC;AACxB,IAAI,MAAM,EAAEC,cAAS,CAAC,IAAI;AAC1B,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,IAAI,EAAE,WAAW;AACrB,IAAI,MAAM,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,SAAS,EAAE,cAAc,CAAC;AACzF,GAAG,CAAC,CAAC;AACL;AACA,EAAE,OAAO;AACT,IAAI,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AACxD,IAAI,OAAO,EAAE;AACb,MAAM,SAAS,EAAE,iBAAiB;AAClC,MAAM,eAAe,EAAE,2BAA2B;AAClD,MAAM,qBAAqB,EAAE,wCAAwC;AACrE,KAAK;AACL,IAAI,MAAM,EAAE;AACZ,MAAM,YAAY,EAAE;AACpB,QAAQ,KAAK,EAAE;AACf,UAAU,IAAI,EAAE,OAAO;AACvB,UAAU,IAAI,EAAE,uBAAuB;AACvC,UAAU,GAAG,EAAE,iEAAiE;AAChF,SAAS;AACT,OAAO;AACP,KAAK;AACL,GAAG,CAAC;AACJ;;AC3Be,wBAAQ,IAAI;AAC3B,EAAE,OAAO;AACT,IAAI,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC,WAAW,EAAE,CAAC,kBAAkB,EAAE,2BAA2B,CAAC,CAAC,CAAC;AAChG,IAAI,OAAO,EAAE;AACb,MAAM,OAAO,EAAE,wFAAwF;AACvG,KAAK;AACL,GAAG,CAAC;AACJ;;ACFe,uBAAc,EAAE,CAAC,WAAW,EAAE,cAAc,CAAC,EAAE;AAC9D,EAAE,OAAO,SAAS,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC;AAC7G;;;;"}
|
package/lib/index.es.js
CHANGED
|
@@ -10,7 +10,7 @@ async function scaffoldLerna ({projectRoot, packageManager}) {
|
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
return {
|
|
13
|
-
|
|
13
|
+
dependencies: {javascript: {development: ['lerna']}},
|
|
14
14
|
scripts: {
|
|
15
15
|
bootstrap: 'lerna bootstrap',
|
|
16
16
|
'test:packages': 'lerna run --parallel test',
|
|
@@ -30,7 +30,7 @@ async function scaffoldLerna ({projectRoot, packageManager}) {
|
|
|
30
30
|
|
|
31
31
|
function scaffoldRelease () {
|
|
32
32
|
return {
|
|
33
|
-
|
|
33
|
+
dependencies: {javascript: {development: ['semantic-release', 'semantic-release-monorepo']}},
|
|
34
34
|
scripts: {
|
|
35
35
|
release: 'lerna exec --concurrency 1 -- npx semantic-release --extends semantic-release-monorepo'
|
|
36
36
|
}
|
package/lib/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../src/lerna.js","../src/release.js","../src/scaffold.js"],"sourcesContent":["import {fileTypes, writeConfigFile} from '@form8ion/core';\n\nexport default async function ({projectRoot, packageManager}) {\n await writeConfigFile({\n format: fileTypes.JSON,\n name: 'lerna',\n path: projectRoot,\n config: {version: 'independent', packages: ['packages/*'], npmClient: packageManager}\n });\n\n return {\n
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../src/lerna.js","../src/release.js","../src/scaffold.js"],"sourcesContent":["import {fileTypes, writeConfigFile} from '@form8ion/core';\n\nexport default async function ({projectRoot, packageManager}) {\n await writeConfigFile({\n format: fileTypes.JSON,\n name: 'lerna',\n path: projectRoot,\n config: {version: 'independent', packages: ['packages/*'], npmClient: packageManager}\n });\n\n return {\n dependencies: {javascript: {development: ['lerna']}},\n scripts: {\n bootstrap: 'lerna bootstrap',\n 'test:packages': 'lerna run --parallel test',\n 'test:packages:since': 'lerna run --parallel test --since HEAD'\n },\n badges: {\n contribution: {\n lerna: {\n text: 'lerna',\n link: 'https://lerna.js.org/',\n img: 'https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg'\n }\n }\n }\n };\n}\n","export default function () {\n return {\n dependencies: {javascript: {development: ['semantic-release', 'semantic-release-monorepo']}},\n scripts: {\n release: 'lerna exec --concurrency 1 -- npx semantic-release --extends semantic-release-monorepo'\n }\n };\n}\n","import deepmerge from 'deepmerge';\n\nimport scaffoldLerna from './lerna.js';\nimport scaffoldRelease from './release.js';\n\nexport default async function ({projectRoot, packageManager}) {\n return deepmerge.all(await Promise.all([scaffoldLerna({projectRoot, packageManager}), scaffoldRelease()]));\n}\n"],"names":[],"mappings":";;;AAEe,4BAAc,EAAE,CAAC,WAAW,EAAE,cAAc,CAAC,EAAE;AAC9D,EAAE,MAAM,eAAe,CAAC;AACxB,IAAI,MAAM,EAAE,SAAS,CAAC,IAAI;AAC1B,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,IAAI,EAAE,WAAW;AACrB,IAAI,MAAM,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,SAAS,EAAE,cAAc,CAAC;AACzF,GAAG,CAAC,CAAC;AACL;AACA,EAAE,OAAO;AACT,IAAI,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AACxD,IAAI,OAAO,EAAE;AACb,MAAM,SAAS,EAAE,iBAAiB;AAClC,MAAM,eAAe,EAAE,2BAA2B;AAClD,MAAM,qBAAqB,EAAE,wCAAwC;AACrE,KAAK;AACL,IAAI,MAAM,EAAE;AACZ,MAAM,YAAY,EAAE;AACpB,QAAQ,KAAK,EAAE;AACf,UAAU,IAAI,EAAE,OAAO;AACvB,UAAU,IAAI,EAAE,uBAAuB;AACvC,UAAU,GAAG,EAAE,iEAAiE;AAChF,SAAS;AACT,OAAO;AACP,KAAK;AACL,GAAG,CAAC;AACJ;;AC3Be,wBAAQ,IAAI;AAC3B,EAAE,OAAO;AACT,IAAI,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC,WAAW,EAAE,CAAC,kBAAkB,EAAE,2BAA2B,CAAC,CAAC,CAAC;AAChG,IAAI,OAAO,EAAE;AACb,MAAM,OAAO,EAAE,wFAAwF;AACvG,KAAK;AACL,GAAG,CAAC;AACJ;;ACFe,uBAAc,EAAE,CAAC,WAAW,EAAE,cAAc,CAAC,EAAE;AAC9D,EAAE,OAAO,SAAS,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC;AAC7G;;;;"}
|
package/package.json
CHANGED
|
@@ -2,22 +2,15 @@
|
|
|
2
2
|
"name": "@form8ion/lerna",
|
|
3
3
|
"description": "opinionated scaffolder for monorepos managed with lerna",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"access": "public"
|
|
12
|
-
},
|
|
5
|
+
"version": "3.0.0-beta.1",
|
|
6
|
+
"author": "Matt Travi <npm@travi.org> (https://matt.travi.org)",
|
|
7
|
+
"repository": "form8ion/lerna",
|
|
8
|
+
"bugs": "https://github.com/form8ion/lerna/issues",
|
|
9
|
+
"homepage": "https://npm.im/@form8ion/lerna",
|
|
13
10
|
"runkitExampleFilename": "./example.js",
|
|
14
11
|
"main": "lib/index.cjs.js",
|
|
15
12
|
"module": "lib/index.es.js",
|
|
16
13
|
"sideEffects": false,
|
|
17
|
-
"repository": "form8ion/lerna",
|
|
18
|
-
"bugs": "https://github.com/form8ion/lerna/issues",
|
|
19
|
-
"homepage": "https://npm.im/@form8ion/lerna",
|
|
20
|
-
"author": "Matt Travi <npm@travi.org> (https://matt.travi.org)",
|
|
21
14
|
"scripts": {
|
|
22
15
|
"test": "npm-run-all --print-label build --parallel lint:* --parallel test:*",
|
|
23
16
|
"lint:lockfile": "lockfile-lint",
|
|
@@ -41,52 +34,59 @@
|
|
|
41
34
|
"build:js": "rollup --config",
|
|
42
35
|
"watch": "run-s 'build:js -- --watch'",
|
|
43
36
|
"prepack": "run-s build",
|
|
44
|
-
"test:unit": "cross-env NODE_ENV=test
|
|
45
|
-
"coverage:report": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
|
|
37
|
+
"test:unit": "cross-env NODE_ENV=test c8 run-s test:unit:base",
|
|
46
38
|
"test:unit:base": "DEBUG=any mocha 'src/**/*-test.js'",
|
|
47
39
|
"lint:peer": "npm ls >/dev/null",
|
|
48
|
-
"prepare": "husky install"
|
|
40
|
+
"prepare": "husky install",
|
|
41
|
+
"lint:publish": "publint"
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"example.js",
|
|
45
|
+
"lib/"
|
|
46
|
+
],
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public",
|
|
49
|
+
"provenance": true
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@form8ion/core": "^3.0.0",
|
|
53
|
+
"deepmerge": "^4.2.2"
|
|
49
54
|
},
|
|
50
55
|
"devDependencies": {
|
|
51
|
-
"@babel/register": "7.
|
|
52
|
-
"@cucumber/cucumber": "
|
|
53
|
-
"@form8ion/babel-preset": "1.6.
|
|
54
|
-
"@form8ion/commitlint-config": "1.0.
|
|
55
|
-
"@form8ion/eslint-config": "
|
|
56
|
+
"@babel/register": "7.22.15",
|
|
57
|
+
"@cucumber/cucumber": "10.0.1",
|
|
58
|
+
"@form8ion/babel-preset": "1.6.119",
|
|
59
|
+
"@form8ion/commitlint-config": "1.0.65",
|
|
60
|
+
"@form8ion/eslint-config": "7.0.7",
|
|
56
61
|
"@form8ion/eslint-config-cucumber": "1.4.1",
|
|
57
|
-
"@form8ion/eslint-config-mocha": "
|
|
58
|
-
"@form8ion/javascript": "
|
|
59
|
-
"@form8ion/javascript-core": "
|
|
60
|
-
"@form8ion/remark-lint-preset": "
|
|
61
|
-
"@
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"chai": "4.3.6",
|
|
66
|
-
"codecov": "3.8.3",
|
|
62
|
+
"@form8ion/eslint-config-mocha": "3.0.1",
|
|
63
|
+
"@form8ion/javascript": "11.10.1",
|
|
64
|
+
"@form8ion/javascript-core": "10.1.0",
|
|
65
|
+
"@form8ion/remark-lint-preset": "6.0.2",
|
|
66
|
+
"@travi/any": "3.0.2",
|
|
67
|
+
"ban-sensitive-files": "1.10.1",
|
|
68
|
+
"c8": "8.0.1",
|
|
69
|
+
"chai": "4.3.10",
|
|
67
70
|
"cross-env": "7.0.3",
|
|
68
71
|
"cz-conventional-changelog": "3.3.0",
|
|
69
72
|
"gherkin-lint": "4.2.2",
|
|
70
|
-
"husky": "8.0.
|
|
71
|
-
"lockfile-lint": "4.
|
|
72
|
-
"mocha": "10.
|
|
73
|
-
"mock-fs": "5.
|
|
74
|
-
"npm-run-
|
|
75
|
-
"nyc": "15.1.0",
|
|
73
|
+
"husky": "8.0.3",
|
|
74
|
+
"lockfile-lint": "4.12.1",
|
|
75
|
+
"mocha": "10.2.0",
|
|
76
|
+
"mock-fs": "5.2.0",
|
|
77
|
+
"npm-run-all2": "6.1.1",
|
|
76
78
|
"package-preview": "4.0.0",
|
|
77
|
-
"
|
|
78
|
-
"remark-
|
|
79
|
-
"remark-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
79
|
+
"publint": "0.2.6",
|
|
80
|
+
"remark-cli": "12.0.0",
|
|
81
|
+
"remark-toc": "9.0.0",
|
|
82
|
+
"remark-usage": "11.0.1",
|
|
83
|
+
"rimraf": "5.0.5",
|
|
84
|
+
"rollup": "4.9.0",
|
|
82
85
|
"rollup-plugin-auto-external": "2.0.0",
|
|
83
|
-
"sinon": "
|
|
84
|
-
},
|
|
85
|
-
"dependencies": {
|
|
86
|
-
"@form8ion/core": "^2.0.0",
|
|
87
|
-
"deepmerge": "^4.2.2"
|
|
86
|
+
"sinon": "17.0.1"
|
|
88
87
|
},
|
|
89
88
|
"peerDependencies": {
|
|
90
89
|
"@form8ion/javascript": ">=2.0.0"
|
|
91
|
-
}
|
|
90
|
+
},
|
|
91
|
+
"packageManager": "npm@11.0.0+sha512.11dff29565d2297c74e7c594a9762581bde969f0aa5cbe6f5b3644bf008a16c065ece61094d9ffbb81125be38df8e1ba43eb8244b3d30c61eb797e9a2440e3ec"
|
|
92
92
|
}
|