chore(): start moving some packages to the core directory (#7215)
This commit is contained in:
committed by
GitHub
parent
fdee748eed
commit
bbccd6481d
18
.eslintrc.js
18
.eslintrc.js
@@ -87,14 +87,20 @@ module.exports = {
|
||||
"./packages/inventory/tsconfig.spec.json",
|
||||
"./packages/stock-location/tsconfig.spec.json",
|
||||
|
||||
"./packages/create-medusa-app/tsconfig.json",
|
||||
|
||||
"./packages/orchestration/tsconfig.json",
|
||||
"./packages/workflows-sdk/tsconfig.spec.json",
|
||||
"./packages/core-flows/tsconfig.spec.json",
|
||||
|
||||
"./packages/types/tsconfig.json",
|
||||
"./packages/utils/tsconfig.json",
|
||||
"./packages/cli/create-medusa-app/tsconfig.spec.json",
|
||||
"./packages/cli/medusa-cli/tsconfig.spec/json",
|
||||
"./packages/cli/medusa-dev-cli/tsconfig.spec.json",
|
||||
"./packages/cli/oas/medusa-oas-cli/tsconfig.spec.json",
|
||||
"./packages/cli/oas/openapi-typescript-codegen/tsconfig.spec.json",
|
||||
|
||||
"./packages/core/orchestration/tsconfig.json",
|
||||
"./packages/core/workflows-sdk/tsconfig.spec.json",
|
||||
"./packages/core/modules-sdk/tsconfig.spec.json",
|
||||
"./packages/core/types/tsconfig.spec.json",
|
||||
"./packages/core/utils/tsconfig.spec.json",
|
||||
"./packages/core/medusa-test-utils/tsconfig.spec.json",
|
||||
|
||||
"./packages/fulfillment-manual/tsconfig.spec.json",
|
||||
|
||||
|
||||
80
.github/workflows/codegen-test.yml
vendored
80
.github/workflows/codegen-test.yml
vendored
@@ -1,40 +1,40 @@
|
||||
name: OAS Codegen Build Check - BETA
|
||||
on:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- "docs/**"
|
||||
- "www/**"
|
||||
|
||||
jobs:
|
||||
codegen-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||
steps:
|
||||
- name: Cancel Previous Runs
|
||||
uses: styfle/cancel-workflow-action@0.11.0
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.10.0"
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install dependencies
|
||||
uses: ./.github/actions/cache-deps
|
||||
with:
|
||||
extension: codegen
|
||||
|
||||
- name: Build Packages - Force
|
||||
run: yarn build --force
|
||||
|
||||
- name: Assert latest codegen build committed
|
||||
run: ./scripts/assert-codegen-build-committed-actions.sh
|
||||
#name: OAS Codegen Build Check - BETA
|
||||
#on:
|
||||
# pull_request:
|
||||
# paths-ignore:
|
||||
# - "docs/**"
|
||||
# - "www/**"
|
||||
#
|
||||
#jobs:
|
||||
# codegen-test:
|
||||
# runs-on: ubuntu-latest
|
||||
# env:
|
||||
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
# TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||
# steps:
|
||||
# - name: Cancel Previous Runs
|
||||
# uses: styfle/cancel-workflow-action@0.11.0
|
||||
# with:
|
||||
# access_token: ${{ github.token }}
|
||||
#
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v3
|
||||
# with:
|
||||
# fetch-depth: 0
|
||||
#
|
||||
# - name: Setup Node.js environment
|
||||
# uses: actions/setup-node@v3
|
||||
# with:
|
||||
# node-version: "16.10.0"
|
||||
# cache: "yarn"
|
||||
#
|
||||
# - name: Install dependencies
|
||||
# uses: ./.github/actions/cache-deps
|
||||
# with:
|
||||
# extension: codegen
|
||||
#
|
||||
# - name: Build Packages - Force
|
||||
# run: yarn build --force
|
||||
#
|
||||
# - name: Assert latest codegen build committed
|
||||
# run: ./scripts/assert-codegen-build-committed-actions.sh
|
||||
|
||||
77
.github/workflows/oas-test.yml
vendored
77
.github/workflows/oas-test.yml
vendored
@@ -1,38 +1,39 @@
|
||||
name: OAS Comments Format Validation
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
docs-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||
steps:
|
||||
- name: Cancel Previous Runs
|
||||
uses: styfle/cancel-workflow-action@0.11.0
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.10.0"
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install dependencies
|
||||
uses: ./.github/actions/cache-deps
|
||||
with:
|
||||
extension: oas
|
||||
|
||||
- name: Build Packages
|
||||
run: yarn build
|
||||
|
||||
- name: Build OAS
|
||||
run: |
|
||||
yarn openapi:generate --dry-run
|
||||
#name: OAS Comments Format Validation
|
||||
#on:
|
||||
# pull_request:
|
||||
#
|
||||
#jobs:
|
||||
# docs-test:
|
||||
# runs-on: ubuntu-latest
|
||||
# env:
|
||||
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
# TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||
# steps:
|
||||
# - name: Cancel Previous Runs
|
||||
# uses: styfle/cancel-workflow-action@0.11.0
|
||||
# with:
|
||||
# access_token: ${{ github.token }}
|
||||
#
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v3
|
||||
# with:
|
||||
# fetch-depth: 0
|
||||
#
|
||||
# - name: Setup Node.js environment
|
||||
# uses: actions/setup-node@v3
|
||||
# with:
|
||||
# node-version: "16.10.0"
|
||||
# cache: "yarn"
|
||||
#
|
||||
# - name: Install dependencies
|
||||
# uses: ./.github/actions/cache-deps
|
||||
# with:
|
||||
# extension: oas
|
||||
#
|
||||
# - name: Build Packages
|
||||
# run: yarn build
|
||||
#
|
||||
# - name: Build OAS
|
||||
# run: |
|
||||
# yarn openapi:generate --dry-run
|
||||
#
|
||||
@@ -5,13 +5,15 @@
|
||||
"packages": [
|
||||
"packages/medusa",
|
||||
"packages/modules/*",
|
||||
"packages/core/*",
|
||||
"packages/cli/*",
|
||||
"packages/testing/*",
|
||||
"packages/medusa-js",
|
||||
"packages/medusa-react",
|
||||
"packages/*",
|
||||
"packages/admin-next/*",
|
||||
"packages/design-system/*",
|
||||
"packages/generated/*",
|
||||
"packages/oas/*",
|
||||
"integration-tests/**/*"
|
||||
]
|
||||
},
|
||||
@@ -78,8 +80,8 @@
|
||||
"test:integration:plugins": "turbo run test:integration --concurrency=50% --no-daemon --no-cache --filter=integration-tests-plugins",
|
||||
"test:integration:modules": "turbo run test:integration:chunk --concurrency=50% --no-daemon --no-cache --filter=integration-tests-modules",
|
||||
"test:integration:repositories": "turbo run test:integration --concurrency=50% --no-daemon --no-cache --filter=integration-tests-repositories",
|
||||
"openapi:generate": "yarn ./packages/oas/oas-github-ci run ci --with-full-file",
|
||||
"medusa-oas": "yarn ./packages/oas/medusa-oas-cli run medusa-oas",
|
||||
"openapi:generate": "yarn ./packages/cli/oas/oas-github-ci run ci --with-full-file",
|
||||
"medusa-oas": "yarn ./packages/cli/oas/medusa-oas-cli run medusa-oas",
|
||||
"release:snapshot": "changeset publish --no-git-tags --snapshot --tag snapshot",
|
||||
"develop": "ts-node --transpile-only ./integration-tests/development/server.js",
|
||||
"develop:create:db": "ts-node --transpile-only ./integration-tests/development/create-database.js",
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user