diff --git a/package.json b/package.json
index fd5ed58..a2b345b 100644
--- a/package.json
+++ b/package.json
@@ -23,10 +23,10 @@
"repo-clean": "git clean -xdf -e .env"
},
"dependencies": {
- "@vardario/astring-ts-generator": "^1.1.0",
+ "@vardario/astring-ts-generator": "^1.1.1",
+ "astring": "^1.9.0",
"commander": "^10.0.1",
"estree-walker": "^3.0.3",
- "astring": "^1.9.0",
"lodash": "^4.17.21"
},
"peerDependencies": {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 71abb64..bff3b52 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -9,8 +9,8 @@ importers:
.:
dependencies:
'@vardario/astring-ts-generator':
- specifier: ^1.1.0
- version: 1.1.0(astring@1.9.0)
+ specifier: ^1.1.1
+ version: 1.1.1(astring@1.9.0)
astring:
specifier: ^1.9.0
version: 1.9.0
@@ -575,8 +575,8 @@ packages:
'@ungap/structured-clone@1.2.1':
resolution: {integrity: sha512-fEzPV3hSkSMltkw152tJKNARhOupqbH96MZWyRjNaYZOMIzbrTeQDG+MTc6Mr2pgzFQzFxAfmhGDNP5QK++2ZA==}
- '@vardario/astring-ts-generator@1.1.0':
- resolution: {integrity: sha512-gLIXskiw5/79UjvXL8BC7ORYJ/5xYKwys2e248bhrm06QzEXnNSTuEaDW3ZxfYN+04nAuAbONdbHXNeD9GCGbg==}
+ '@vardario/astring-ts-generator@1.1.1':
+ resolution: {integrity: sha512-RGDZeYbAeebfaXR6qGux9spMFEU3GBFyclMUXvAJcfWNcNz23ZASXxmcfg2A3Iz3PareTvvpLYSOa3XSIJjNVA==}
peerDependencies:
astring: ^1.9.0
@@ -2651,7 +2651,7 @@ snapshots:
'@ungap/structured-clone@1.2.1': {}
- '@vardario/astring-ts-generator@1.1.0(astring@1.9.0)':
+ '@vardario/astring-ts-generator@1.1.1(astring@1.9.0)':
dependencies:
astring: 1.9.0
diff --git a/src/tests/print-script.test.ts b/src/tests/print-script.test.ts
index 870a22f..fca30e5 100644
--- a/src/tests/print-script.test.ts
+++ b/src/tests/print-script.test.ts
@@ -8,6 +8,7 @@ function testScriptPrinter(code: string, expectedResult?: string) {
indent: '',
lineEnd: ''
});
+
expect(result).toBe(expectedResult ?? code);
}
@@ -27,4 +28,10 @@ describe('');
});
+
+ test('default import', () => {
+ testScriptPrinter(
+ ``
+ );
+ });
});