@form8ion/mise 1.0.0-beta.2 → 1.0.0-beta.4
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 +3 -0
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +10 -5
- package/src/scaffolder.js +1 -1
- package/src/scaffolder.test.js +1 -1
- package/src/canary.test.js +0 -7
package/README.md
CHANGED
|
@@ -25,6 +25,7 @@ form8ion plugin for managing mise
|
|
|
25
25
|
|
|
26
26
|
[![npm][npm-badge]][npm-link]
|
|
27
27
|
[![license][license-badge]][license-link]
|
|
28
|
+
![node][node-badge]
|
|
28
29
|
|
|
29
30
|
<!--consumer-badges end -->
|
|
30
31
|
|
|
@@ -112,3 +113,5 @@ $ npm test
|
|
|
112
113
|
[license-link]: LICENSE
|
|
113
114
|
|
|
114
115
|
[license-badge]: https://img.shields.io/github/license/form8ion/mise.svg?logo=opensourceinitiative
|
|
116
|
+
|
|
117
|
+
[node-badge]: https://img.shields.io/node/v/@form8ion/mise?logo=node.js
|
package/lib/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { stringify } from 'smol-toml';
|
|
|
3
3
|
import { fileExists } from '@form8ion/core';
|
|
4
4
|
|
|
5
5
|
async function scaffold({projectRoot}) {
|
|
6
|
-
await promises.writeFile(`${projectRoot}/mise.toml`, stringify({lockfile: true}));
|
|
6
|
+
await promises.writeFile(`${projectRoot}/mise.toml`, stringify({settings: {lockfile: true}}));
|
|
7
7
|
|
|
8
8
|
return {};
|
|
9
9
|
}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/scaffolder.js","../src/tester.js"],"sourcesContent":["import {promises as fs} from 'node:fs';\nimport {stringify} from 'smol-toml';\n\nexport default async function scaffold({projectRoot}) {\n await fs.writeFile(`${projectRoot}/mise.toml`, stringify({lockfile: true}));\n\n return {};\n}\n","import {fileExists} from '@form8ion/core';\n\nexport default function test({projectRoot}) {\n return fileExists(`${projectRoot}/mise.toml`);\n}\n"],"names":["fs"],"mappings":";;;;AAGe,eAAe,QAAQ,CAAC,CAAC,WAAW,CAAC,EAAE;AACtD,EAAE,MAAMA,QAAE,CAAC,SAAS,CAAC,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/scaffolder.js","../src/tester.js"],"sourcesContent":["import {promises as fs} from 'node:fs';\nimport {stringify} from 'smol-toml';\n\nexport default async function scaffold({projectRoot}) {\n await fs.writeFile(`${projectRoot}/mise.toml`, stringify({settings: {lockfile: true}}));\n\n return {};\n}\n","import {fileExists} from '@form8ion/core';\n\nexport default function test({projectRoot}) {\n return fileExists(`${projectRoot}/mise.toml`);\n}\n"],"names":["fs"],"mappings":";;;;AAGe,eAAe,QAAQ,CAAC,CAAC,WAAW,CAAC,EAAE;AACtD,EAAE,MAAMA,QAAE,CAAC,SAAS,CAAC,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;;AAEzF,EAAE,OAAO,EAAE;AACX;;ACLe,SAAS,IAAI,CAAC,CAAC,WAAW,CAAC,EAAE;AAC5C,EAAE,OAAO,UAAU,CAAC,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;AAC/C;;;;"}
|
package/package.json
CHANGED
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
"name": "@form8ion/mise",
|
|
3
3
|
"description": "form8ion plugin for managing mise",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "1.0.0-beta.
|
|
5
|
+
"version": "1.0.0-beta.4",
|
|
6
6
|
"type": "module",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": "^22.21.0 || >=24.12"
|
|
9
|
+
},
|
|
7
10
|
"author": "Matt Travi <npm@travi.org> (https://matt.travi.org)",
|
|
8
11
|
"repository": "form8ion/mise",
|
|
9
12
|
"bugs": "https://github.com/form8ion/mise/issues",
|
|
@@ -14,6 +17,7 @@
|
|
|
14
17
|
"scripts": {
|
|
15
18
|
"pretest": "run-s build",
|
|
16
19
|
"test": "npm-run-all --print-label --parallel lint:* --parallel test:*",
|
|
20
|
+
"lint:engines": "ls-engines",
|
|
17
21
|
"lint:gherkin": "gplint --config .gplintrc.json",
|
|
18
22
|
"lint:js": "eslint . --cache",
|
|
19
23
|
"lint:js:fix": "run-s 'lint:js -- --fix'",
|
|
@@ -50,6 +54,10 @@
|
|
|
50
54
|
"provenance": true
|
|
51
55
|
},
|
|
52
56
|
"packageManager": "npm@11.14.1+sha512.6a8a4d67478497a2dbc6815cad72e64c43f33413717e242756047d466241ab39bee61e691683a64658e94496ec5f1a1c05e4a5ec62dcc773280dfd949443a367",
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@form8ion/core": "^4.11.1",
|
|
59
|
+
"smol-toml": "^1.6.1"
|
|
60
|
+
},
|
|
53
61
|
"devDependencies": {
|
|
54
62
|
"@cucumber/cucumber": "12.8.3",
|
|
55
63
|
"@form8ion/commitlint-config": "2.0.14",
|
|
@@ -63,6 +71,7 @@
|
|
|
63
71
|
"gplint": "2.5.2",
|
|
64
72
|
"husky": "9.1.7",
|
|
65
73
|
"lockfile-lint": "5.0.0",
|
|
74
|
+
"ls-engines": "0.10.0",
|
|
66
75
|
"mock-fs": "5.5.0",
|
|
67
76
|
"npm-run-all2": "8.0.4",
|
|
68
77
|
"publint": "0.3.20",
|
|
@@ -74,9 +83,5 @@
|
|
|
74
83
|
"rollup-plugin-auto-external": "2.0.0",
|
|
75
84
|
"vitest": "4.1.6",
|
|
76
85
|
"vitest-when": "0.10.0"
|
|
77
|
-
},
|
|
78
|
-
"dependencies": {
|
|
79
|
-
"@form8ion/core": "^4.11.1",
|
|
80
|
-
"smol-toml": "^1.6.1"
|
|
81
86
|
}
|
|
82
87
|
}
|
package/src/scaffolder.js
CHANGED
|
@@ -2,7 +2,7 @@ import {promises as fs} from 'node:fs';
|
|
|
2
2
|
import {stringify} from 'smol-toml';
|
|
3
3
|
|
|
4
4
|
export default async function scaffold({projectRoot}) {
|
|
5
|
-
await fs.writeFile(`${projectRoot}/mise.toml`, stringify({lockfile: true}));
|
|
5
|
+
await fs.writeFile(`${projectRoot}/mise.toml`, stringify({settings: {lockfile: true}}));
|
|
6
6
|
|
|
7
7
|
return {};
|
|
8
8
|
}
|
package/src/scaffolder.test.js
CHANGED
|
@@ -14,7 +14,7 @@ describe('mise scaffolder', () => {
|
|
|
14
14
|
it('should scaffold the mise configuration file', async () => {
|
|
15
15
|
const projectRoot = any.string();
|
|
16
16
|
const serializedConfig = any.string();
|
|
17
|
-
when(stringify).calledWith({lockfile: true}).thenReturn(serializedConfig);
|
|
17
|
+
when(stringify).calledWith({settings: {lockfile: true}}).thenReturn(serializedConfig);
|
|
18
18
|
|
|
19
19
|
expect(await scaffoldMise({projectRoot})).toEqual({});
|
|
20
20
|
|