Skip to content

Commit

Permalink
BREAKING_CHANGE: replace v2 as default package exports
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode authored and AlexZeitler committed Sep 27, 2024
1 parent 5e462b8 commit 0e3e990
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 44 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"types": "dist/index.d.ts",
"scripts": {
"ci": "yarn install --frozen-lockfile",
"test-v1": "npx vitest --dir test/v1 --test-timeout=30000",
"test-v2": "npx vitest --dir test/v2 --test-timeout=30000",
"test": "npx vitest --dir test --test-timeout=30000",
"lint": "eslint src/**/*.ts test/**/*.ts",
"build": "tsc",
"prepublishOnly": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion src/v2.ts → src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import childProcess from 'child_process'
import yaml from 'yaml'
import mapPorts from './v2-map-ports'
import mapPorts from './map-ports'

export interface IDockerComposeExecutableOptions {
executablePath: string
Expand Down
38 changes: 0 additions & 38 deletions src/v2-map-ports.ts

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions test/v2/compose.test.ts → test/compose.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import {
beforeAll
} from 'vitest'
import Docker, { ContainerInfo } from 'dockerode'
import * as compose from '../../src/v2'
import * as compose from '../src'
import * as path from 'path'
import { readFile } from 'fs'
import { mapPsOutput, mapImListOutput } from '../../src/v2'
import { mapPsOutput, mapImListOutput } from '../src'
const docker = new Docker()

const isContainerRunning = async (name: string): Promise<boolean> =>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/v2/map-ports.test.ts → test/map-ports.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mapPorts from '../../src/v2-map-ports'
import mapPorts from '../src/map-ports'
import { describe, expect, it } from 'vitest'

describe('when no ports are exposed', (): void => {
Expand Down

0 comments on commit 0e3e990

Please sign in to comment.