apotheke 0.1.3 → 0.1.4

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/dist/cli.js CHANGED
@@ -234,6 +234,7 @@ function findAttachedComment(source, importStart, comments) {
234
234
  const importLine = linesBefore.length - 1;
235
235
  for (const comment of comments) {
236
236
  if (comment.type !== "Line") continue;
237
+ if (comment.value.startsWith("/")) continue;
237
238
  const commentLines = source.slice(0, comment.end).split("\n");
238
239
  const commentLine = commentLines.length - 1;
239
240
  if (commentLine === importLine - 1) {
package/dist/index.js CHANGED
@@ -231,6 +231,7 @@ function findAttachedComment(source, importStart, comments) {
231
231
  const importLine = linesBefore.length - 1;
232
232
  for (const comment of comments) {
233
233
  if (comment.type !== "Line") continue;
234
+ if (comment.value.startsWith("/")) continue;
234
235
  const commentLines = source.slice(0, comment.end).split("\n");
235
236
  const commentLine = commentLines.length - 1;
236
237
  if (commentLine === importLine - 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apotheke",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Prettier for imports — deterministic import organization as a Prettier plugin or CLI",
5
5
  "type": "module",
6
6
  "license": "MIT",