@neurodevs/meta-node 0.14.9 → 0.14.11
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/build/__tests__/AbstractAutomoduleTest.d.ts +2 -2
- package/build/__tests__/AbstractAutomoduleTest.js +39 -44
- package/build/__tests__/AbstractAutomoduleTest.js.map +1 -1
- package/build/__tests__/AbstractPackageTest.d.ts +2 -2
- package/build/__tests__/AbstractPackageTest.js +19 -27
- package/build/__tests__/AbstractPackageTest.js.map +1 -1
- package/build/__tests__/impl/GitAutocloner.test.d.ts +1 -1
- package/build/__tests__/impl/GitAutocloner.test.js +45 -52
- package/build/__tests__/impl/GitAutocloner.test.js.map +1 -1
- package/build/__tests__/impl/ImplAutomodule.test.d.ts +1 -1
- package/build/__tests__/impl/ImplAutomodule.test.js +39 -44
- package/build/__tests__/impl/ImplAutomodule.test.js.map +1 -1
- package/build/__tests__/impl/NpmAutopackage.test.d.ts +1 -1
- package/build/__tests__/impl/NpmAutopackage.test.js +155 -162
- package/build/__tests__/impl/NpmAutopackage.test.js.map +1 -1
- package/build/__tests__/impl/PackageAutodocumenter.test.d.ts +1 -1
- package/build/__tests__/impl/PackageAutodocumenter.test.js +8 -13
- package/build/__tests__/impl/PackageAutodocumenter.test.js.map +1 -1
- package/build/__tests__/impl/TypescriptClassSnippetSuite.test.d.ts +1 -1
- package/build/__tests__/impl/TypescriptClassSnippetSuite.test.js +42 -49
- package/build/__tests__/impl/TypescriptClassSnippetSuite.test.js.map +1 -1
- package/build/__tests__/impl/UiAutomodule.test.d.ts +1 -1
- package/build/__tests__/impl/UiAutomodule.test.js +39 -45
- package/build/__tests__/impl/UiAutomodule.test.js.map +1 -1
- package/build/__tests__/impl/VscodeSnippetKeybinder.test.d.ts +1 -1
- package/build/__tests__/impl/VscodeSnippetKeybinder.test.js +50 -57
- package/build/__tests__/impl/VscodeSnippetKeybinder.test.js.map +1 -1
- package/build/functions/expandHomeDir.js +4 -10
- package/build/functions/expandHomeDir.js.map +1 -1
- package/build/impl/AbstractAutomodule.d.ts +1 -1
- package/build/impl/AbstractAutomodule.js +23 -14
- package/build/impl/AbstractAutomodule.js.map +1 -1
- package/build/impl/GitAutocloner.js +16 -15
- package/build/impl/GitAutocloner.js.map +1 -1
- package/build/impl/ImplAutomodule.d.ts +2 -2
- package/build/impl/ImplAutomodule.js +13 -15
- package/build/impl/ImplAutomodule.js.map +1 -1
- package/build/impl/NpmAutopackage.js +32 -26
- package/build/impl/NpmAutopackage.js.map +1 -1
- package/build/impl/PackageAutodocumenter.js +2 -4
- package/build/impl/PackageAutodocumenter.js.map +1 -1
- package/build/impl/TypescriptClassSnippetSuite.js +125 -129
- package/build/impl/TypescriptClassSnippetSuite.js.map +1 -1
- package/build/impl/UiAutomodule.d.ts +2 -2
- package/build/impl/UiAutomodule.js +17 -18
- package/build/impl/UiAutomodule.js.map +1 -1
- package/build/impl/VscodeSnippetKeybinder.js +16 -17
- package/build/impl/VscodeSnippetKeybinder.js.map +1 -1
- package/build/index.d.ts +28 -28
- package/build/index.js +28 -62
- package/build/index.js.map +1 -1
- package/build/scripts/installSnippetSuite.js +2 -7
- package/build/scripts/installSnippetSuite.js.map +1 -1
- package/build/scripts/runAutopackage.js +4 -9
- package/build/scripts/runAutopackage.js.map +1 -1
- package/build/scripts/runImplAutomodule.js +6 -11
- package/build/scripts/runImplAutomodule.js.map +1 -1
- package/build/scripts/runSnippetKeybinder.js +2 -7
- package/build/scripts/runSnippetKeybinder.js.map +1 -1
- package/build/scripts/runUiAutomodule.js +6 -11
- package/build/scripts/runUiAutomodule.js.map +1 -1
- package/build/testDoubles/Autocloner/FakeAutocloner.d.ts +1 -1
- package/build/testDoubles/Autocloner/FakeAutocloner.js +3 -6
- package/build/testDoubles/Autocloner/FakeAutocloner.js.map +1 -1
- package/build/testDoubles/Autodocumenter/FakeAutodocumenter.d.ts +1 -1
- package/build/testDoubles/Autodocumenter/FakeAutodocumenter.js +2 -5
- package/build/testDoubles/Autodocumenter/FakeAutodocumenter.js.map +1 -1
- package/build/testDoubles/Automodule/FakeAutomodule.d.ts +3 -3
- package/build/testDoubles/Automodule/FakeAutomodule.js +3 -6
- package/build/testDoubles/Automodule/FakeAutomodule.js.map +1 -1
- package/build/testDoubles/Autopackage/FakeAutopackage.d.ts +1 -1
- package/build/testDoubles/Autopackage/FakeAutopackage.js +3 -6
- package/build/testDoubles/Autopackage/FakeAutopackage.js.map +1 -1
- package/build/testDoubles/SnippetKeybinder/FakeSnippetKeybinder.d.ts +1 -1
- package/build/testDoubles/SnippetKeybinder/FakeSnippetKeybinder.js +3 -5
- package/build/testDoubles/SnippetKeybinder/FakeSnippetKeybinder.js.map +1 -1
- package/build/testDoubles/SnippetSuite/FakeSnippetSuite.d.ts +1 -1
- package/build/testDoubles/SnippetSuite/FakeSnippetSuite.js +3 -6
- package/build/testDoubles/SnippetSuite/FakeSnippetSuite.js.map +1 -1
- package/build/types.js +1 -2
- package/package.json +5 -3
- package/src/__tests__/AbstractAutomoduleTest.ts +5 -4
- package/src/__tests__/AbstractPackageTest.ts +4 -3
- package/src/__tests__/impl/GitAutocloner.test.ts +4 -3
- package/src/__tests__/impl/ImplAutomodule.test.ts +12 -10
- package/src/__tests__/impl/NpmAutopackage.test.ts +4 -3
- package/src/__tests__/impl/PackageAutodocumenter.test.ts +4 -3
- package/src/__tests__/impl/TypescriptClassSnippetSuite.test.ts +4 -3
- package/src/__tests__/impl/UiAutomodule.test.ts +14 -11
- package/src/__tests__/impl/VscodeSnippetKeybinder.test.ts +4 -3
- package/src/impl/AbstractAutomodule.ts +2 -1
- package/src/impl/ImplAutomodule.ts +10 -9
- package/src/impl/TypescriptClassSnippetSuite.ts +1 -1
- package/src/impl/UiAutomodule.ts +13 -10
- package/src/impl/VscodeSnippetKeybinder.ts +2 -1
- package/src/index.ts +28 -28
- package/src/scripts/installSnippetSuite.ts +1 -1
- package/src/scripts/runAutopackage.ts +2 -2
- package/src/scripts/runImplAutomodule.ts +2 -2
- package/src/scripts/runSnippetKeybinder.ts +1 -1
- package/src/scripts/runUiAutomodule.ts +2 -2
- package/src/testDoubles/Autocloner/FakeAutocloner.ts +1 -1
- package/src/testDoubles/Autodocumenter/FakeAutodocumenter.ts +1 -1
- package/src/testDoubles/Automodule/FakeAutomodule.ts +3 -3
- package/src/testDoubles/Autopackage/FakeAutopackage.ts +1 -1
- package/src/testDoubles/SnippetKeybinder/FakeSnippetKeybinder.ts +1 -1
- package/src/testDoubles/SnippetSuite/FakeSnippetSuite.ts +1 -1
- package/tsconfig.json +17 -28
|
@@ -2,7 +2,6 @@ import { ChildProcess, exec as execSync } from 'child_process'
|
|
|
2
2
|
import { readFile, writeFile } from 'fs/promises'
|
|
3
3
|
import path from 'path'
|
|
4
4
|
import { promisify } from 'util'
|
|
5
|
-
import { test, assert } from '@sprucelabs/test-utils'
|
|
6
5
|
import {
|
|
7
6
|
callsToChdir,
|
|
8
7
|
callsToExec,
|
|
@@ -27,11 +26,13 @@ import {
|
|
|
27
26
|
setPathShouldExist,
|
|
28
27
|
} from '@neurodevs/fake-node-core'
|
|
29
28
|
import generateId from '@neurodevs/generate-id'
|
|
29
|
+
import { test, assert } from '@neurodevs/node-tdd'
|
|
30
|
+
|
|
30
31
|
import NpmAutopackage, {
|
|
31
32
|
Autopackage,
|
|
32
33
|
AutopackageOptions,
|
|
33
|
-
} from '../../impl/NpmAutopackage'
|
|
34
|
-
import AbstractPackageTest from '../AbstractPackageTest'
|
|
34
|
+
} from '../../impl/NpmAutopackage.js'
|
|
35
|
+
import AbstractPackageTest from '../AbstractPackageTest.js'
|
|
35
36
|
|
|
36
37
|
const exec = promisify(execSync)
|
|
37
38
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { test, assert } from '@
|
|
1
|
+
import { test, assert } from '@neurodevs/node-tdd'
|
|
2
|
+
|
|
2
3
|
import PackageAutodocumenter, {
|
|
3
4
|
Autodocumenter,
|
|
4
|
-
} from '../../impl/PackageAutodocumenter'
|
|
5
|
-
import AbstractPackageTest from '../AbstractPackageTest'
|
|
5
|
+
} from '../../impl/PackageAutodocumenter.js'
|
|
6
|
+
import AbstractPackageTest from '../AbstractPackageTest.js'
|
|
6
7
|
|
|
7
8
|
export default class PackageAutodocumenterTest extends AbstractPackageTest {
|
|
8
9
|
private static instance: Autodocumenter
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { readFile, writeFile } from 'fs/promises'
|
|
2
|
-
import { test, assert } from '@sprucelabs/test-utils'
|
|
3
2
|
import {
|
|
4
3
|
callsToWriteFile,
|
|
5
4
|
fakeReadFile,
|
|
@@ -8,10 +7,12 @@ import {
|
|
|
8
7
|
resetCallsToWriteFile,
|
|
9
8
|
setFakeReadFileResult,
|
|
10
9
|
} from '@neurodevs/fake-node-core'
|
|
10
|
+
import { test, assert } from '@neurodevs/node-tdd'
|
|
11
|
+
|
|
11
12
|
import TypescriptClassSnippetSuite, {
|
|
12
13
|
SnippetSuite,
|
|
13
|
-
} from '../../impl/TypescriptClassSnippetSuite'
|
|
14
|
-
import AbstractPackageTest from '../AbstractPackageTest'
|
|
14
|
+
} from '../../impl/TypescriptClassSnippetSuite.js'
|
|
15
|
+
import AbstractPackageTest from '../AbstractPackageTest.js'
|
|
15
16
|
|
|
16
17
|
export default class TypescriptClassSnippetSuiteTest extends AbstractPackageTest {
|
|
17
18
|
private static instance: SnippetSuite
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { test, assert } from '@sprucelabs/test-utils'
|
|
2
1
|
import {
|
|
3
2
|
callsToExec,
|
|
4
3
|
callsToWriteFile,
|
|
@@ -6,8 +5,10 @@ import {
|
|
|
6
5
|
setFakeReadFileThrowsFor,
|
|
7
6
|
} from '@neurodevs/fake-node-core'
|
|
8
7
|
import generateId from '@neurodevs/generate-id'
|
|
9
|
-
import
|
|
10
|
-
|
|
8
|
+
import { test, assert } from '@neurodevs/node-tdd'
|
|
9
|
+
|
|
10
|
+
import UiAutomodule from '../../impl/UiAutomodule.js'
|
|
11
|
+
import AbstractAutomoduleTest from '../AbstractAutomoduleTest.js'
|
|
11
12
|
|
|
12
13
|
export default class UiAutomoduleTest extends AbstractAutomoduleTest {
|
|
13
14
|
protected static async beforeEach() {
|
|
@@ -133,10 +134,11 @@ export default class UiAutomoduleTest extends AbstractAutomoduleTest {
|
|
|
133
134
|
|
|
134
135
|
private static get testFilePattern() {
|
|
135
136
|
return `
|
|
136
|
-
import { test, assert } from '@
|
|
137
|
+
import { test, assert } from '@neurodevs/node-tdd'
|
|
137
138
|
import { render, RenderResult } from '@testing-library/react'
|
|
138
|
-
|
|
139
|
-
import
|
|
139
|
+
|
|
140
|
+
import ${this.componentName} from '../../ui/${this.componentName}.js'
|
|
141
|
+
import AbstractPackageTest from '../AbstractPackageTest.js'
|
|
140
142
|
|
|
141
143
|
export default class ${this.componentName}Test extends AbstractPackageTest {
|
|
142
144
|
private static result: RenderResult
|
|
@@ -200,7 +202,8 @@ export default class UiAutomoduleTest extends AbstractAutomoduleTest {
|
|
|
200
202
|
private static get fakeFilePattern() {
|
|
201
203
|
return `
|
|
202
204
|
import React from 'react'
|
|
203
|
-
|
|
205
|
+
|
|
206
|
+
import { ${this.componentName}Props } from '../../ui/${this.componentName}.js'
|
|
204
207
|
|
|
205
208
|
export let last${this.componentName}Props: ${this.componentName}Props | undefined
|
|
206
209
|
|
|
@@ -222,11 +225,11 @@ export default class UiAutomoduleTest extends AbstractAutomoduleTest {
|
|
|
222
225
|
return `
|
|
223
226
|
// ${this.componentName}
|
|
224
227
|
|
|
225
|
-
export { default as ${this.componentName} } from './ui/${this.componentName}'
|
|
226
|
-
export * from './ui/${this.componentName}'
|
|
228
|
+
export { default as ${this.componentName} } from './ui/${this.componentName}.js'
|
|
229
|
+
export * from './ui/${this.componentName}.js'
|
|
227
230
|
|
|
228
|
-
export { default as Fake${this.componentName} } from './testDoubles/${this.componentName}/Fake${this.componentName}'
|
|
229
|
-
export * from './testDoubles/${this.componentName}/Fake${this.componentName}'
|
|
231
|
+
export { default as Fake${this.componentName} } from './testDoubles/${this.componentName}/Fake${this.componentName}.js'
|
|
232
|
+
export * from './testDoubles/${this.componentName}/Fake${this.componentName}.js'
|
|
230
233
|
|
|
231
234
|
`
|
|
232
235
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { readFile, writeFile } from 'fs/promises'
|
|
2
|
-
import { test, assert } from '@sprucelabs/test-utils'
|
|
3
2
|
import {
|
|
4
3
|
callsToWriteFile,
|
|
5
4
|
fakeReadFile,
|
|
@@ -9,10 +8,12 @@ import {
|
|
|
9
8
|
setFakeReadFileResult,
|
|
10
9
|
} from '@neurodevs/fake-node-core'
|
|
11
10
|
import generateId from '@neurodevs/generate-id'
|
|
11
|
+
import { test, assert } from '@neurodevs/node-tdd'
|
|
12
|
+
|
|
12
13
|
import VscodeSnippetKeybinder, {
|
|
13
14
|
SnippetKeybinder,
|
|
14
|
-
} from '../../impl/VscodeSnippetKeybinder'
|
|
15
|
-
import AbstractPackageTest from '../AbstractPackageTest'
|
|
15
|
+
} from '../../impl/VscodeSnippetKeybinder.js'
|
|
16
|
+
import AbstractPackageTest from '../AbstractPackageTest.js'
|
|
16
17
|
|
|
17
18
|
export default class VscodeSnippetKeybinderTest extends AbstractPackageTest {
|
|
18
19
|
private static instance: SnippetKeybinder
|
|
@@ -2,7 +2,8 @@ import { exec as execSync } from 'child_process'
|
|
|
2
2
|
import { readFile, writeFile } from 'fs/promises'
|
|
3
3
|
import { promisify } from 'util'
|
|
4
4
|
import { pathExists } from 'fs-extra'
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
import { Automodule, BaseAutomoduleOptions } from '../types.js'
|
|
6
7
|
|
|
7
8
|
export default abstract class AbstractAutomodule implements Automodule {
|
|
8
9
|
public static exec = promisify(execSync)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Automodule, BaseAutomoduleOptions } from '../types'
|
|
2
|
-
import AbstractAutomodule from './AbstractAutomodule'
|
|
1
|
+
import { Automodule, BaseAutomoduleOptions } from '../types.js'
|
|
2
|
+
import AbstractAutomodule from './AbstractAutomodule.js'
|
|
3
3
|
|
|
4
4
|
export default class ImplAutomodule extends AbstractAutomodule {
|
|
5
5
|
public static Class?: ImplAutomoduleConstructor
|
|
@@ -44,8 +44,9 @@ export default class ImplAutomodule extends AbstractAutomodule {
|
|
|
44
44
|
|
|
45
45
|
private get testFilePattern() {
|
|
46
46
|
return `
|
|
47
|
-
import AbstractSpruceTest, { test, assert } from '@
|
|
48
|
-
|
|
47
|
+
import AbstractSpruceTest, { test, assert } from '@neurodevs/node-tdd'
|
|
48
|
+
|
|
49
|
+
import ${this.implName}, { ${this.interfaceName} } from '../../impl/${this.implName}.js'
|
|
49
50
|
|
|
50
51
|
export default class ${this.implName}Test extends AbstractSpruceTest {
|
|
51
52
|
private static instance: ${this.interfaceName}
|
|
@@ -88,7 +89,7 @@ export default class ImplAutomodule extends AbstractAutomodule {
|
|
|
88
89
|
|
|
89
90
|
private get fakeFilePattern() {
|
|
90
91
|
return `
|
|
91
|
-
import { ${this.interfaceName} } from '../../impl/${this.implName}'
|
|
92
|
+
import { ${this.interfaceName} } from '../../impl/${this.implName}.js'
|
|
92
93
|
|
|
93
94
|
export default class Fake${this.interfaceName} implements ${this.interfaceName} {
|
|
94
95
|
public static numCallsToConstructor = 0
|
|
@@ -108,11 +109,11 @@ export default class ImplAutomodule extends AbstractAutomodule {
|
|
|
108
109
|
return `
|
|
109
110
|
// ${this.interfaceName}
|
|
110
111
|
|
|
111
|
-
export { default as ${this.implName} } from './impl/${this.implName}'
|
|
112
|
-
export * from './impl/${this.implName}'
|
|
112
|
+
export { default as ${this.implName} } from './impl/${this.implName}.js'
|
|
113
|
+
export * from './impl/${this.implName}.js'
|
|
113
114
|
|
|
114
|
-
export { default as Fake${this.interfaceName} } from './testDoubles/${this.interfaceName}/Fake${this.interfaceName}'
|
|
115
|
-
export * from './testDoubles/${this.interfaceName}/Fake${this.interfaceName}'
|
|
115
|
+
export { default as Fake${this.interfaceName} } from './testDoubles/${this.interfaceName}/Fake${this.interfaceName}.js'
|
|
116
|
+
export * from './testDoubles/${this.interfaceName}/Fake${this.interfaceName}.js'
|
|
116
117
|
`
|
|
117
118
|
}
|
|
118
119
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { readFile, writeFile } from 'fs/promises'
|
|
2
|
-
import expandHomeDir from '../functions/expandHomeDir'
|
|
2
|
+
import expandHomeDir from '../functions/expandHomeDir.js'
|
|
3
3
|
|
|
4
4
|
export default class TypescriptClassSnippetSuite implements SnippetSuite {
|
|
5
5
|
public static Class?: SnippetSuiteConstructor
|
package/src/impl/UiAutomodule.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { pathExists } from 'fs-extra'
|
|
2
|
-
|
|
3
|
-
import
|
|
2
|
+
|
|
3
|
+
import { Automodule, BaseAutomoduleOptions } from '../types.js'
|
|
4
|
+
import AbstractAutomodule from './AbstractAutomodule.js'
|
|
4
5
|
|
|
5
6
|
export default class UiAutomodule extends AbstractAutomodule {
|
|
6
7
|
public static Class?: UiAutomoduleConstructor
|
|
@@ -52,10 +53,11 @@ export default class UiAutomodule extends AbstractAutomodule {
|
|
|
52
53
|
|
|
53
54
|
private get testFileTemplate() {
|
|
54
55
|
return `
|
|
55
|
-
import { test, assert } from '@
|
|
56
|
+
import { test, assert } from '@neurodevs/node-tdd'
|
|
56
57
|
import { render, RenderResult } from '@testing-library/react'
|
|
57
|
-
|
|
58
|
-
import
|
|
58
|
+
|
|
59
|
+
import ${this.componentName} from '../../ui/${this.componentName}.js'
|
|
60
|
+
import AbstractPackageTest from '../AbstractPackageTest.js'
|
|
59
61
|
|
|
60
62
|
export default class ${this.componentName}Test extends AbstractPackageTest {
|
|
61
63
|
private static result: RenderResult
|
|
@@ -119,7 +121,8 @@ export default class UiAutomodule extends AbstractAutomodule {
|
|
|
119
121
|
private get fakeFilePattern() {
|
|
120
122
|
return `
|
|
121
123
|
import React from 'react'
|
|
122
|
-
|
|
124
|
+
|
|
125
|
+
import { ${this.componentName}Props } from '../../ui/${this.componentName}.js'
|
|
123
126
|
|
|
124
127
|
export let last${this.componentName}Props: ${this.componentName}Props | undefined
|
|
125
128
|
|
|
@@ -141,11 +144,11 @@ export default class UiAutomodule extends AbstractAutomodule {
|
|
|
141
144
|
return `
|
|
142
145
|
// ${this.componentName}
|
|
143
146
|
|
|
144
|
-
export { default as ${this.componentName} } from './ui/${this.componentName}'
|
|
145
|
-
export * from './ui/${this.componentName}'
|
|
147
|
+
export { default as ${this.componentName} } from './ui/${this.componentName}.js'
|
|
148
|
+
export * from './ui/${this.componentName}.js'
|
|
146
149
|
|
|
147
|
-
export { default as Fake${this.componentName} } from './testDoubles/${this.componentName}/Fake${this.componentName}'
|
|
148
|
-
export * from './testDoubles/${this.componentName}/Fake${this.componentName}'
|
|
150
|
+
export { default as Fake${this.componentName} } from './testDoubles/${this.componentName}/Fake${this.componentName}.js'
|
|
151
|
+
export * from './testDoubles/${this.componentName}/Fake${this.componentName}.js'
|
|
149
152
|
|
|
150
153
|
`
|
|
151
154
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { readFile, writeFile } from 'fs/promises'
|
|
2
2
|
import { parse } from 'jsonc-parser'
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
import expandHomeDir from '../functions/expandHomeDir.js'
|
|
4
5
|
|
|
5
6
|
export default class VscodeSnippetKeybinder implements SnippetKeybinder {
|
|
6
7
|
public static Class?: SnippetKeybinderConstructor
|
package/src/index.ts
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
// Autocloner
|
|
2
2
|
|
|
3
|
-
export { default as GitAutocloner } from './impl/GitAutocloner'
|
|
4
|
-
export * from './impl/GitAutocloner'
|
|
3
|
+
export { default as GitAutocloner } from './impl/GitAutocloner.js'
|
|
4
|
+
export * from './impl/GitAutocloner.js'
|
|
5
5
|
|
|
6
|
-
export { default as FakeAutocloner } from './testDoubles/Autocloner/FakeAutocloner'
|
|
7
|
-
export * from './testDoubles/Autocloner/FakeAutocloner'
|
|
6
|
+
export { default as FakeAutocloner } from './testDoubles/Autocloner/FakeAutocloner.js'
|
|
7
|
+
export * from './testDoubles/Autocloner/FakeAutocloner.js'
|
|
8
8
|
|
|
9
9
|
// Autodocumenter
|
|
10
10
|
|
|
11
|
-
export { default as PackageAutodocumenter } from './impl/PackageAutodocumenter'
|
|
12
|
-
export * from './impl/PackageAutodocumenter'
|
|
11
|
+
export { default as PackageAutodocumenter } from './impl/PackageAutodocumenter.js'
|
|
12
|
+
export * from './impl/PackageAutodocumenter.js'
|
|
13
13
|
|
|
14
|
-
export { default as FakeAutodocumenter } from './testDoubles/Autodocumenter/FakeAutodocumenter'
|
|
15
|
-
export * from './testDoubles/Autodocumenter/FakeAutodocumenter'
|
|
14
|
+
export { default as FakeAutodocumenter } from './testDoubles/Autodocumenter/FakeAutodocumenter.js'
|
|
15
|
+
export * from './testDoubles/Autodocumenter/FakeAutodocumenter.js'
|
|
16
16
|
|
|
17
17
|
// Automodule
|
|
18
18
|
|
|
19
|
-
export { default as AbstractAutomodule } from './impl/AbstractAutomodule'
|
|
20
|
-
export * from './impl/AbstractAutomodule'
|
|
19
|
+
export { default as AbstractAutomodule } from './impl/AbstractAutomodule.js'
|
|
20
|
+
export * from './impl/AbstractAutomodule.js'
|
|
21
21
|
|
|
22
|
-
export { default as ImplAutomodule } from './impl/ImplAutomodule'
|
|
23
|
-
export * from './impl/ImplAutomodule'
|
|
22
|
+
export { default as ImplAutomodule } from './impl/ImplAutomodule.js'
|
|
23
|
+
export * from './impl/ImplAutomodule.js'
|
|
24
24
|
|
|
25
|
-
export { default as UiAutomodule } from './impl/UiAutomodule'
|
|
26
|
-
export * from './impl/UiAutomodule'
|
|
25
|
+
export { default as UiAutomodule } from './impl/UiAutomodule.js'
|
|
26
|
+
export * from './impl/UiAutomodule.js'
|
|
27
27
|
|
|
28
|
-
export { default as FakeAutomodule } from './testDoubles/Automodule/FakeAutomodule'
|
|
29
|
-
export * from './testDoubles/Automodule/FakeAutomodule'
|
|
28
|
+
export { default as FakeAutomodule } from './testDoubles/Automodule/FakeAutomodule.js'
|
|
29
|
+
export * from './testDoubles/Automodule/FakeAutomodule.js'
|
|
30
30
|
|
|
31
31
|
// Autopackage
|
|
32
32
|
|
|
33
|
-
export { default as NpmAutopackage } from './impl/NpmAutopackage'
|
|
34
|
-
export * from './impl/NpmAutopackage'
|
|
33
|
+
export { default as NpmAutopackage } from './impl/NpmAutopackage.js'
|
|
34
|
+
export * from './impl/NpmAutopackage.js'
|
|
35
35
|
|
|
36
|
-
export { default as FakeAutopackage } from './testDoubles/Autopackage/FakeAutopackage'
|
|
37
|
-
export * from './testDoubles/Autopackage/FakeAutopackage'
|
|
36
|
+
export { default as FakeAutopackage } from './testDoubles/Autopackage/FakeAutopackage.js'
|
|
37
|
+
export * from './testDoubles/Autopackage/FakeAutopackage.js'
|
|
38
38
|
|
|
39
39
|
// SnippetKeybinder
|
|
40
40
|
|
|
41
|
-
export { default as VscodeSnippetKeybinder } from './impl/VscodeSnippetKeybinder'
|
|
42
|
-
export * from './impl/VscodeSnippetKeybinder'
|
|
41
|
+
export { default as VscodeSnippetKeybinder } from './impl/VscodeSnippetKeybinder.js'
|
|
42
|
+
export * from './impl/VscodeSnippetKeybinder.js'
|
|
43
43
|
|
|
44
|
-
export { default as FakeSnippetKeybinder } from './testDoubles/SnippetKeybinder/FakeSnippetKeybinder'
|
|
45
|
-
export * from './testDoubles/SnippetKeybinder/FakeSnippetKeybinder'
|
|
44
|
+
export { default as FakeSnippetKeybinder } from './testDoubles/SnippetKeybinder/FakeSnippetKeybinder.js'
|
|
45
|
+
export * from './testDoubles/SnippetKeybinder/FakeSnippetKeybinder.js'
|
|
46
46
|
|
|
47
47
|
// SnippetSuite
|
|
48
48
|
|
|
49
|
-
export { default as TypescriptClassSnippetSuite } from './impl/TypescriptClassSnippetSuite'
|
|
50
|
-
export * from './impl/TypescriptClassSnippetSuite'
|
|
49
|
+
export { default as TypescriptClassSnippetSuite } from './impl/TypescriptClassSnippetSuite.js'
|
|
50
|
+
export * from './impl/TypescriptClassSnippetSuite.js'
|
|
51
51
|
|
|
52
|
-
export { default as FakeSnippetSuite } from './testDoubles/SnippetSuite/FakeSnippetSuite'
|
|
53
|
-
export * from './testDoubles/SnippetSuite/FakeSnippetSuite'
|
|
52
|
+
export { default as FakeSnippetSuite } from './testDoubles/SnippetSuite/FakeSnippetSuite.js'
|
|
53
|
+
export * from './testDoubles/SnippetSuite/FakeSnippetSuite.js'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import expandHomeDir from '../functions/expandHomeDir'
|
|
2
|
-
import NpmAutopackage from '../impl/NpmAutopackage'
|
|
1
|
+
import expandHomeDir from '../functions/expandHomeDir.js'
|
|
2
|
+
import NpmAutopackage from '../impl/NpmAutopackage.js'
|
|
3
3
|
|
|
4
4
|
async function main() {
|
|
5
5
|
console.log('Running autopackage...')
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import expandHomeDir from '../functions/expandHomeDir'
|
|
2
|
-
import ImplAutomodule from '../impl/ImplAutomodule'
|
|
1
|
+
import expandHomeDir from '../functions/expandHomeDir.js'
|
|
2
|
+
import ImplAutomodule from '../impl/ImplAutomodule.js'
|
|
3
3
|
|
|
4
4
|
async function main() {
|
|
5
5
|
console.log('\nRunning automodule...')
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import expandHomeDir from '../functions/expandHomeDir'
|
|
2
|
-
import UiAutomodule from '../impl/UiAutomodule'
|
|
1
|
+
import expandHomeDir from '../functions/expandHomeDir.js'
|
|
2
|
+
import UiAutomodule from '../impl/UiAutomodule.js'
|
|
3
3
|
|
|
4
4
|
async function main() {
|
|
5
5
|
console.log('\nRunning automodule...')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ImplAutomoduleOptions } from '../../impl/ImplAutomodule'
|
|
2
|
-
import { UiAutomoduleOptions } from '../../impl/UiAutomodule'
|
|
3
|
-
import { Automodule } from '../../types'
|
|
1
|
+
import { ImplAutomoduleOptions } from '../../impl/ImplAutomodule.js'
|
|
2
|
+
import { UiAutomoduleOptions } from '../../impl/UiAutomodule.js'
|
|
3
|
+
import { Automodule } from '../../types.js'
|
|
4
4
|
|
|
5
5
|
export default class FakeImplAutomodule implements Automodule {
|
|
6
6
|
public static callsToConstructor: FakeAutomoduleOptions[] = []
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Autopackage, AutopackageOptions } from '../../impl/NpmAutopackage'
|
|
1
|
+
import { Autopackage, AutopackageOptions } from '../../impl/NpmAutopackage.js'
|
|
2
2
|
|
|
3
3
|
export default class FakeAutopackage implements Autopackage {
|
|
4
4
|
public static callsToConstructor: AutopackageOptions[] = []
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SnippetKeybinder,
|
|
3
3
|
SnippetKeybinderOptions,
|
|
4
|
-
} from '../../impl/VscodeSnippetKeybinder'
|
|
4
|
+
} from '../../impl/VscodeSnippetKeybinder.js'
|
|
5
5
|
|
|
6
6
|
export default class FakeSnippetKeybinder implements SnippetKeybinder {
|
|
7
7
|
public static callsToConstructor: SnippetKeybinderOptions[]
|
package/tsconfig.json
CHANGED
|
@@ -1,39 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
3
|
+
"module": "nodenext",
|
|
4
|
+
"moduleResolution": "nodenext",
|
|
5
|
+
"target": "ES2022",
|
|
6
|
+
"lib": ["ES2022"],
|
|
7
|
+
"types": ["node"],
|
|
8
|
+
"baseUrl": "src",
|
|
9
|
+
"outDir": "build",
|
|
10
|
+
"sourceMap": false,
|
|
11
|
+
"strict": true,
|
|
12
12
|
"noImplicitAny": true,
|
|
13
|
-
"allowJs": true,
|
|
14
|
-
"forceConsistentCasingInFileNames": true,
|
|
15
13
|
"noImplicitReturns": true,
|
|
16
|
-
"strict": true,
|
|
17
14
|
"noUnusedLocals": true,
|
|
15
|
+
"forceConsistentCasingInFileNames": true,
|
|
16
|
+
"declaration": true,
|
|
17
|
+
"skipLibCheck": true,
|
|
18
|
+
"esModuleInterop": true,
|
|
19
|
+
"moduleDetection": "force",
|
|
20
|
+
"allowJs": true,
|
|
18
21
|
"resolveJsonModule": true,
|
|
19
|
-
"
|
|
20
|
-
"sourceMap": false,
|
|
21
|
-
"outDir": "build",
|
|
22
|
-
"baseUrl": "src",
|
|
23
|
-
"experimentalDecorators": true,
|
|
24
|
-
"paths": {
|
|
25
|
-
"#spruce/*": [
|
|
26
|
-
".spruce/*"
|
|
27
|
-
]
|
|
28
|
-
}
|
|
22
|
+
"experimentalDecorators": true
|
|
29
23
|
},
|
|
30
24
|
"include": [
|
|
31
25
|
"./src/*.ts",
|
|
32
|
-
"./src/**/*.ts"
|
|
33
|
-
"./src/.spruce/**/*"
|
|
34
|
-
],
|
|
35
|
-
"exclude": [
|
|
36
|
-
"build",
|
|
37
|
-
"esm"
|
|
26
|
+
"./src/**/*.ts"
|
|
38
27
|
]
|
|
39
28
|
}
|