aberlaas-init 2.22.3 → 2.24.0
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/helper.js +0 -1
- package/lib/layouts/__tests__/libdocs.js +4 -5
- package/lib/layouts/__tests__/module.js +3 -3
- package/lib/layouts/__tests__/monorepo.js +3 -3
- package/lib/layouts/libdocs.js +1 -1
- package/lib/layouts/module.js +1 -1
- package/lib/layouts/monorepo.js +1 -1
- package/package.json +4 -4
package/lib/helper.js
CHANGED
|
@@ -217,7 +217,6 @@ export const __ = {
|
|
|
217
217
|
|
|
218
218
|
// Named exports of public methods, but wrapped in dynamic method so we can
|
|
219
219
|
// still mock the inner methods in tests
|
|
220
|
-
//
|
|
221
220
|
export const addConfigFiles = wrap(__, 'addConfigFiles');
|
|
222
221
|
export const addDefaultScripts = wrap(__, 'addDefaultScripts');
|
|
223
222
|
export const addDocsScripts = wrap(__, 'addDocsScripts');
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
import { __ as initHelper } from '../../helper.js';
|
|
17
17
|
import { __, run } from '../libdocs.js';
|
|
18
18
|
|
|
19
|
-
describe('init
|
|
20
|
-
const testDirectory = tmpDirectory(
|
|
19
|
+
describe('init/libdocs', () => {
|
|
20
|
+
const testDirectory = tmpDirectory(`aberlaas/${describeName}`);
|
|
21
21
|
beforeEach(async () => {
|
|
22
22
|
mockHelperPaths(testDirectory);
|
|
23
23
|
|
|
@@ -143,7 +143,7 @@ describe('init > libdocs', () => {
|
|
|
143
143
|
node: `>=${nodeVersion}`,
|
|
144
144
|
},
|
|
145
145
|
|
|
146
|
-
files: ['
|
|
146
|
+
files: ['./*.js'],
|
|
147
147
|
exports: { '.': './main.js' },
|
|
148
148
|
// Some tools have trouble parsing the .exports field, so we keep the
|
|
149
149
|
// .main field for backward compatibility
|
|
@@ -174,8 +174,7 @@ describe('init > libdocs', () => {
|
|
|
174
174
|
});
|
|
175
175
|
});
|
|
176
176
|
|
|
177
|
-
describe('run', () => {
|
|
178
|
-
vi.setConfig({ testTimeout: 10_000 });
|
|
177
|
+
describe.slow('run', () => {
|
|
179
178
|
it('should build a libdocs structure', async () => {
|
|
180
179
|
await run();
|
|
181
180
|
|
|
@@ -4,8 +4,8 @@ import { nodeVersion, yarnVersion } from 'aberlaas-versions';
|
|
|
4
4
|
import { __ as initHelper } from '../../helper.js';
|
|
5
5
|
import { __, run } from '../module.js';
|
|
6
6
|
|
|
7
|
-
describe('init
|
|
8
|
-
const testDirectory = tmpDirectory(
|
|
7
|
+
describe('init/module', () => {
|
|
8
|
+
const testDirectory = tmpDirectory(`aberlaas/${describeName}`);
|
|
9
9
|
beforeEach(async () => {
|
|
10
10
|
mockHelperPaths(testDirectory);
|
|
11
11
|
|
|
@@ -64,7 +64,7 @@ describe('init > module', () => {
|
|
|
64
64
|
[
|
|
65
65
|
'should export the right files',
|
|
66
66
|
{
|
|
67
|
-
files: ['lib/*.js'],
|
|
67
|
+
files: ['./lib/*.js'],
|
|
68
68
|
exports: { '.': './lib/main.js' },
|
|
69
69
|
main: './lib/main.js',
|
|
70
70
|
},
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
import { __ as initHelper } from '../../helper.js';
|
|
17
17
|
import { __, run } from '../monorepo.js';
|
|
18
18
|
|
|
19
|
-
describe('init
|
|
20
|
-
const testDirectory = tmpDirectory(
|
|
19
|
+
describe('init/monorepo', () => {
|
|
20
|
+
const testDirectory = tmpDirectory(`aberlaas/${describeName}`);
|
|
21
21
|
beforeEach(async () => {
|
|
22
22
|
mockHelperPaths(testDirectory);
|
|
23
23
|
|
|
@@ -143,7 +143,7 @@ describe('init > monorepo', () => {
|
|
|
143
143
|
node: `>=${nodeVersion}`,
|
|
144
144
|
},
|
|
145
145
|
|
|
146
|
-
files: ['
|
|
146
|
+
files: ['./*.js'],
|
|
147
147
|
exports: { '.': './main.js' },
|
|
148
148
|
// Some tools have trouble parsing the .exports field, so we keep the
|
|
149
149
|
// .main field for backward compatibility
|
package/lib/layouts/libdocs.js
CHANGED
package/lib/layouts/module.js
CHANGED
package/lib/layouts/monorepo.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aberlaas-init",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.24.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "aberlaas init command: Setup the repository with all needed config",
|
|
6
6
|
"author": "Tim Carry <tim@pixelastic.com>",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
},
|
|
38
38
|
"main": "./lib/main.js",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"aberlaas-helper": "2.
|
|
41
|
-
"aberlaas-versions": "2.
|
|
42
|
-
"firost": "5.
|
|
40
|
+
"aberlaas-helper": "2.24.0",
|
|
41
|
+
"aberlaas-versions": "2.24.0",
|
|
42
|
+
"firost": "5.6.1",
|
|
43
43
|
"gilmore": "1.2.0",
|
|
44
44
|
"golgoth": "3.1.0"
|
|
45
45
|
},
|