Skip to content

Commit 58a5095

Browse files
authored
Merge pull request #115 from contentstack/fix/DX-586
DX - 586 - Changed bin files as required for oclif v3
2 parents 7c0709d + 7fb31a0 commit 58a5095

4 files changed

Lines changed: 118 additions & 8 deletions

File tree

bin/dev.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env node
2+
(async () => {
3+
const { execute } = require("@contentstack/cli-utilities");
4+
await execute({ type: "cjs", development: true, dir: __dirname });
5+
})();

bin/run.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env node
2+
3+
(async () => {
4+
const {execute} = require('@contentstack/cli-utilities')
5+
await execute({ type: 'cjs', dir: __dirname })
6+
})()

package-lock.json

Lines changed: 105 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/issues",
77
"dependencies": {
88
"@contentstack/cli-command": "^1.2.17",
9-
"@contentstack/cli-utilities": "^1.5.10",
9+
"@contentstack/cli-utilities": "^1.6.1",
1010
"@gql2ts/from-schema": "^2.0.0-4",
1111
"async": "^3.2.5",
1212
"graphql": "^14.7.0",
@@ -30,7 +30,7 @@
3030
"globby": "^10.0.2",
3131
"jest": "^26.5.3",
3232
"mocha": "^10.2.0",
33-
"oclif": "^3.7.0",
33+
"oclif": "^3.10.0",
3434
"ts-jest": "^26.4.1",
3535
"ts-node": "^10.9.1",
3636
"typescript": "^4.8.4"

0 commit comments

Comments
 (0)