@neurodevs/meta-node 0.14.8 → 0.14.10
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 +32 -38
- package/build/__tests__/impl/ImplAutomodule.test.js.map +1 -1
- package/build/__tests__/impl/NpmAutopackage.test.d.ts +3 -2
- package/build/__tests__/impl/NpmAutopackage.test.js +162 -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 +30 -38
- 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 +6 -9
- package/build/impl/ImplAutomodule.js.map +1 -1
- package/build/impl/NpmAutopackage.d.ts +1 -1
- package/build/impl/NpmAutopackage.js +36 -29
- 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 +8 -11
- 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 +5 -4
- package/src/__tests__/impl/NpmAutopackage.test.ts +31 -15
- 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 +5 -4
- package/src/__tests__/impl/VscodeSnippetKeybinder.test.ts +4 -3
- package/src/impl/AbstractAutomodule.ts +2 -1
- package/src/impl/ImplAutomodule.ts +3 -3
- package/src/impl/NpmAutopackage.ts +4 -3
- package/src/impl/TypescriptClassSnippetSuite.ts +1 -1
- package/src/impl/UiAutomodule.ts +4 -3
- 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
|
@@ -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,7 +134,7 @@ 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 ${this.componentName} from '../../ui/${this.componentName}'
|
|
139
140
|
import AbstractPackageTest from '../AbstractPackageTest'
|
|
@@ -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,7 +44,7 @@ export default class ImplAutomodule extends AbstractAutomodule {
|
|
|
44
44
|
|
|
45
45
|
private get testFilePattern() {
|
|
46
46
|
return `
|
|
47
|
-
import AbstractSpruceTest, { test, assert } from '@
|
|
47
|
+
import AbstractSpruceTest, { test, assert } from '@neurodevs/node-tdd'
|
|
48
48
|
import ${this.implName}, { ${this.interfaceName} } from '../../impl/${this.implName}'
|
|
49
49
|
|
|
50
50
|
export default class ${this.implName}Test extends AbstractSpruceTest {
|
|
@@ -68,7 +68,7 @@ export default class NpmAutopackage implements Autopackage {
|
|
|
68
68
|
await this.cloneGitRepo()
|
|
69
69
|
|
|
70
70
|
this.chdirToPackageDir()
|
|
71
|
-
await this.
|
|
71
|
+
await this.resetMainToOrigin()
|
|
72
72
|
await this.setCurrentMetaNodeVersion()
|
|
73
73
|
await this.spruceCreateModule()
|
|
74
74
|
await this.updatePackageJson()
|
|
@@ -160,8 +160,9 @@ export default class NpmAutopackage implements Autopackage {
|
|
|
160
160
|
return `https://github.com/${this.gitNamespace}/${this.packageName}.git`
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
private async
|
|
164
|
-
await this.exec('git
|
|
163
|
+
private async resetMainToOrigin() {
|
|
164
|
+
await this.exec('git fetch origin')
|
|
165
|
+
await this.exec('git reset --hard origin/main')
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
private chdirToPackageDir() {
|
|
@@ -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,7 +53,7 @@ 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 ${this.componentName} from '../../ui/${this.componentName}'
|
|
58
59
|
import AbstractPackageTest from '../AbstractPackageTest'
|
|
@@ -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
|
}
|