Skip to content

Commit

Permalink
deps: update all dependencies to the latest
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Apr 28, 2024
1 parent fd5a5f2 commit fd039d4
Show file tree
Hide file tree
Showing 7 changed files with 902 additions and 1,042 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export $(xargs < .env) && docker run --rm --tty --name contentful-migration-runn
```sh
pnpm build

env $(xargs < .env) pnpm ts-node ./bin/index.js run ./migrations
env $(xargs < .env) pnpm tsx ./bin/index.js run ./migrations
```


Expand All @@ -45,4 +45,4 @@ pnpm version prerelease

# Push branch and tags
git push origin main --follow-tags
```
```
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM node:18.14.2-alpine
FROM node:20.12.2-alpine
WORKDIR /app
RUN apk --no-cache add curl
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
RUN corepack enable pnpm
RUN node -v
RUN pnpm -v
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile --prod
RUN pnpm add typescript ts-node
RUN pnpm add typescript tsx
COPY . .

ENTRYPOINT ["pnpm", "ts-node", "docker.ts"]
ENTRYPOINT ["pnpm", "tsx", "docker.ts"]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ npm install --save-dev contentful-migration@latest contentful-migration-tool@lat
npx contentful-migration-tool run ./migrations
```

If you use **TypeScript**, you will also need **ts-node** to run TypeScript migrations:
If you use **TypeScript**, you will also need **tsx** to run TypeScript migrations:

```sh
# install dependencies
npm install --save-dev contentful-migration@latest contentful-migration-tool@latest ts-node
npm install --save-dev contentful-migration@latest contentful-migration-tool@latest tsx

# run migrations
npx ts-node ./node_modules/.bin/contentful-migration-tool run ./migrations
npx tsx ./node_modules/.bin/contentful-migration-tool run ./migrations
```

Remember to set the required environment variables before running the above commands.
Expand Down
Binary file modified cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function removeDependency(): void {
}

function runMigration(): void {
execSync(`ts-node runner.ts run ${ resolve(__dirname, 'migrations') }`, {
execSync(`tsx runner.ts run ${ resolve(__dirname, 'migrations') }`, {
encoding: 'utf-8',
stdio: 'inherit'
})
Expand Down
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"build": "tsc",
"prepublishOnly": "pnpm build",
"dep:major": "pnpm dlx npm-check-updates --packageFile '**/package.json' -u",
"dep:minor": "pnpm dep:major -t minor"
"dep:minor": "pnpm dep:major -t minor",
"ls-engines": "pnpm dlx ls-engines"
},
"repository": {
"type": "git",
Expand All @@ -41,19 +42,19 @@
},
"dependencies": {
"@types/yargs": "^17.0.32",
"chalk": "^4.1.2",
"contentful-management": "^7.54.2",
"chalk": "^5.3.0",
"contentful-management": "^11.25.2",
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/jest": "^27.5.2",
"@types/node": "18.14.2",
"@types/jest": "^29.5.12",
"@types/node": "20.12.7",
"contentful-migration": "^4.20.2",
"dotenv": "^10.0.0",
"jest": "^27.5.1",
"ts-jest": "^27.1.5",
"ts-node": "^10.9.2",
"typescript": "^4.9.5"
"dotenv": "^16.4.5",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"tsx": "^4.7.3",
"typescript": "^5.4.5"
},
"peerDependencies": {
"contentful-migration": ">=4"
Expand Down
Loading

0 comments on commit fd039d4

Please sign in to comment.