@form8ion/mise 1.0.0-beta.2 → 1.0.0-beta.3

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/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;;AAE7E,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;;;;"}
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,7 +2,7 @@
2
2
  "name": "@form8ion/mise",
3
3
  "description": "form8ion plugin for managing mise",
4
4
  "license": "MIT",
5
- "version": "1.0.0-beta.2",
5
+ "version": "1.0.0-beta.3",
6
6
  "type": "module",
7
7
  "author": "Matt Travi <npm@travi.org> (https://matt.travi.org)",
8
8
  "repository": "form8ion/mise",
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
  }
@@ -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