Skip to content

Commit

Permalink
Merge pull request #15 from commercelayer/milestone/v3.0.0
Browse files Browse the repository at this point in the history
Milestone/v3.0.0
  • Loading branch information
pviti authored Apr 30, 2024
2 parents ef57449 + 9655308 commit ed71a8f
Show file tree
Hide file tree
Showing 21 changed files with 6,359 additions and 6,903 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": [
"@commercelayer/eslint-config-ts"
],
"ignorePatterns": ["test/**/*.test.ts", "bin/**/*"],
"ignorePatterns": ["test/**/*.test.ts", "bin/**"],
"rules": {
"prettier/prettier": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release
on:
push:
branches: [ main ]
branches: [ main, beta, prerelease ]
pull_request:
branches: [ main ]
jobs:
Expand Down Expand Up @@ -30,8 +30,8 @@ jobs:
- name: Run specs
env:
CL_CLI_ORGANIZATION: cli-test-org
CL_CLI_CLIENT_ID: SQWYt6tF8bx9uWzxGbrPxEMCEP5dCZbu93r56KRTLPY
CL_CLI_CLIENT_SECRET: DKMUFKTxqjfEc9SMNeG2FKPLqKOdMHYwz1BysAJcObw
CL_CLI_CLIENT_ID: ${{ secrets.CL_CLI_CLIENT_ID }}
CL_CLI_CLIENT_SECRET: ${{ secrets.CL_CLI_CLIENT_SECRET }}
run: pnpm test
- name: Release
env:
Expand Down
3 changes: 1 addition & 2 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"require": "ts-node/register",
"loader": "ts-node/esm"
"import": "tsx"
}
5 changes: 3 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
"branches": [
{ "name": "main", "channel": "latest" },
"+([0-9])?(.{+([0-9]),x}).x",
{ "name": "beta", "prerelease": true }
{ "name": "beta", "prerelease": true },
{ "name": "prerelease", "prerelease": "rc" }
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
"@semantic-release/npm",
"@semantic-release/github",
["@semantic-release/changelog", {
"changelogFile": "CHANGELOG.md"
}],
Expand Down
114 changes: 112 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,119 @@
## [2.4.1](https://github.com/commercelayer/commercelayer-cli-plugin-exports/compare/v2.4.0...v2.4.1) (2024-02-20)
# [3.0.0-rc.3](https://github.com/commercelayer/commercelayer-cli-plugin-exports/compare/v3.0.0-rc.2...v3.0.0-rc.3) (2024-04-15)


### Bug Fixes

* update dependencies and resources ([68ba607](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/68ba6077e9274950bc555cbceae7e88693e9e31e))
* update dependencies ([fa9e7db](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/fa9e7db3e8981930f965c1cab778e00e24ffc4a1))

# [3.0.0-rc.2](https://github.com/commercelayer/commercelayer-cli-plugin-exports/compare/v3.0.0-rc.1...v3.0.0-rc.2) (2024-04-15)


### Bug Fixes

* fix dependencies ([19e232c](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/19e232c0cbdbc40f6052a1e18d8edd24b250bc4d))

# [3.0.0-rc.1](https://github.com/commercelayer/commercelayer-cli-plugin-exports/compare/v2.4.0...v3.0.0-rc.1) (2024-04-12)


### Bug Fixes

* fix linter errors ([e30639e](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/e30639e2c83284034c5fae70d99aa0419cd9376c))
* fix release config ([6722b8b](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/6722b8bee7c7be6cfee544e71a68224eed9a800e))
* fix sdk6 types ([a14f4d4](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/a14f4d484d6c5a664138fad23c6945eaefad1273))
* fix ts-node ([537cf08](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/537cf0840d923ffac09d856f6d750c40116be6bc))
* fix update package ([aec65e8](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/aec65e8dd094562209e9fc0569e32d48c519f695))
* replace ts-node with tsx ([3f6e497](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/3f6e4979d2f2610d88ba2703b494941a180cc905))
* update dependencies ([2552669](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/255266923c1744750601c004ba484ab91420e6e3))


### Features

* prerelease ([2ad8059](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/2ad8059cb5294cc672a07b2a0f06ec0135f5473f))


### Performance Improvements

* update engine ([0465687](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/046568705f2c1674638be2090471385d8af4b0b2))
* upgrade to oclif 3 ([a27aa54](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/a27aa54cf91c687b5bd2ccc73f0da3f1a9539a85))


### BREAKING CHANGES

* remove support for node.js <20
* the framework oclif and its plugins have been migrated to next major version

# [3.0.0-oclif3.9](https://github.com/commercelayer/commercelayer-cli-plugin-exports/compare/v3.0.0-oclif3.8...v3.0.0-oclif3.9) (2024-04-12)


### Bug Fixes

* fix release config ([6722b8b](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/6722b8bee7c7be6cfee544e71a68224eed9a800e))

# [3.0.0-oclif3.8](https://github.com/commercelayer/commercelayer-cli-plugin-exports/compare/v3.0.0-oclif3.7...v3.0.0-oclif3.8) (2024-04-11)


### Bug Fixes

* fix ts-node ([537cf08](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/537cf0840d923ffac09d856f6d750c40116be6bc))

# [3.0.0-oclif3.7](https://github.com/commercelayer/commercelayer-cli-plugin-exports/compare/v3.0.0-oclif3.6...v3.0.0-oclif3.7) (2024-04-11)


### Bug Fixes

* replace ts-node with tsx ([3f6e497](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/3f6e4979d2f2610d88ba2703b494941a180cc905))

# [3.0.0-oclif3.6](https://github.com/commercelayer/commercelayer-cli-plugin-exports/compare/v3.0.0-oclif3.5...v3.0.0-oclif3.6) (2024-04-11)


### Bug Fixes

* fix sdk6 types ([a14f4d4](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/a14f4d484d6c5a664138fad23c6945eaefad1273))

# [3.0.0-oclif3.5](https://github.com/commercelayer/commercelayer-cli-plugin-exports/compare/v3.0.0-oclif3.4...v3.0.0-oclif3.5) (2024-02-23)


### Bug Fixes

* fix update package ([aec65e8](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/aec65e8dd094562209e9fc0569e32d48c519f695))

# [3.0.0-oclif3.4](https://github.com/commercelayer/commercelayer-cli-plugin-exports/compare/v3.0.0-oclif3.3...v3.0.0-oclif3.4) (2024-02-22)


### Performance Improvements

* update engine ([0465687](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/046568705f2c1674638be2090471385d8af4b0b2))


### BREAKING CHANGES

* remove support for node.js <20

# [3.0.0-oclif3.3](https://github.com/commercelayer/commercelayer-cli-plugin-exports/compare/v3.0.0-oclif3.2...v3.0.0-oclif3.3) (2024-02-21)


### Bug Fixes

* update dependencies ([2552669](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/255266923c1744750601c004ba484ab91420e6e3))

# [3.0.0-oclif3.2](https://github.com/commercelayer/commercelayer-cli-plugin-exports/compare/v3.0.0-oclif3.1...v3.0.0-oclif3.2) (2024-02-15)


### Bug Fixes

* fix linter errors ([e30639e](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/e30639e2c83284034c5fae70d99aa0419cd9376c))

# [3.0.0-oclif3.1](https://github.com/commercelayer/commercelayer-cli-plugin-exports/compare/v2.4.0...v3.0.0-oclif3.1) (2024-02-13)


### Performance Improvements

* upgrade to oclif 3 ([a27aa54](https://github.com/commercelayer/commercelayer-cli-plugin-exports/commit/a27aa54cf91c687b5bd2ccc73f0da3f1a9539a85))


### BREAKING CHANGES

* the framework oclif and its plugins have been migrated to next major version

# [2.4.0](https://github.com/commercelayer/commercelayer-cli-plugin-exports/compare/v2.3.0...v2.4.0) (2023-11-22)

Expand Down
6 changes: 6 additions & 0 deletions bin/dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env node_modules/.bin/tsx

;(async () => {
const oclif = await import('@oclif/core')
await oclif.execute({development: true, dir: __dirname})
})()
3 changes: 1 addition & 2 deletions bin/dev → bin/old/dev
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ const project = path.join(__dirname, '..', 'tsconfig.json')
process.env.NODE_ENV = 'development'

// eslint-disable-next-line node/no-unpublished-require
// require('ts-node').register({project})
require('ts-node').register({ project, files: ['../src/typings/*'] })
require('ts-node').register({project})

// In dev mode, always show stack traces
oclif.settings.debug = true
Expand Down
3 changes: 3 additions & 0 deletions bin/old/dev.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

node "%~dp0\dev" %*
File renamed without changes.
3 changes: 3 additions & 0 deletions bin/old/run.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

node "%~dp0\run" %*
6 changes: 6 additions & 0 deletions bin/run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env node

(async () => {
const oclif = await import('@oclif/core')
await oclif.execute({development: false, dir: __dirname})
})()
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"name": "@commercelayer/cli-plugin-exports",
"description": "Commerce Layer CLI Exports plugin",
"version": "2.4.1",
"version": "3.0.0-rc.3",
"author": "Pierluigi Viti <pierluigi@commercelayer.io>",
"homepage": "https://github.com/commercelayer/commercelayer-cli-plugin-exports",
"repository": "commercelayer/commercelayer-cli-plugin-exports",
"bugs": "https://github.com/commercelayer/commercelayer-cli-plugin-exports/issues",
"engines": {
"node": "^16.13.0 || >=18.0.0"
"node": ">=20"
},
"files": [
"/bin",
"/bin/run.*",
"/lib",
"/npm-shrinkwrap.json",
"/oclif.manifest.json"
],
"homepage": "https://github.com/commercelayer/commercelayer-cli-plugin-exports",
"keywords": [
"ecommerce",
"cli",
Expand All @@ -40,7 +41,6 @@
],
"topicSeparator": ":"
},
"repository": "commercelayer/commercelayer-cli-plugin-exports",
"scripts": {
"build": "rm -rf lib && tsc -b",
"prepack": "pnpm build && oclif manifest && pnpm readme",
Expand All @@ -53,31 +53,31 @@
},
"types": "lib/index.d.ts",
"devDependencies": {
"@commercelayer/cli-dev": "^2.1.3",
"@commercelayer/eslint-config-ts": "^1.3.0",
"@oclif/plugin-help": "^5.2.20",
"@oclif/test": "^2.5.6",
"@commercelayer/cli-dev": "^3.0.3",
"@commercelayer/eslint-config-ts": "^1.4.5",
"@oclif/plugin-help": "^6.0.21",
"@oclif/test": "^3.2.11",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/chai": "^4.3.11",
"@types/chai": "^4.3.14",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.19",
"@types/node": "^20.12.7",
"@types/node-notifier": "^8.0.5",
"chai": "^4.4.1",
"eslint": "^8.56.0",
"mocha": "^10.3.0",
"eslint": "^8.57.0",
"mocha": "^10.4.0",
"nyc": "^15.1.0",
"oclif": "^4.4.16",
"semantic-release": "^22.0.12",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
"oclif": "^4.9.3",
"semantic-release": "^23.0.8",
"tsx": "^4.7.3",
"typescript": "^5.4.5"
},
"dependencies": {
"@commercelayer/cli-core": "^4.12.0",
"@commercelayer/sdk": "^5.32.0",
"@oclif/core": "^2.15.0",
"axios": "^1.6.7",
"cli-table3": "^0.6.3",
"@commercelayer/cli-core": "^5.0.0",
"@commercelayer/sdk": "^6.0.0",
"@oclif/core": "^3.26.4",
"axios": "^1.6.8",
"cli-table3": "^0.6.4",
"node-notifier": "^10.0.1",
"open": "^8.4.2",
"spinnies": "^0.5.1",
Expand Down
Loading

0 comments on commit ed71a8f

Please sign in to comment.