Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
build: rename to
Browse files Browse the repository at this point in the history
  • Loading branch information
domjtalbot committed Mar 8, 2023
1 parent 4730739 commit 3b9261b
Show file tree
Hide file tree
Showing 186 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/__build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
if: inputs.node_version == 'lts'
shell: bash
run: |
cd dist/libs
cd dist/packages
tar cvzf nx-mesh.tar.gz nx-mesh
mv nx-mesh.tar.gz ../../
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/__changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
- name: Modify Workspace File
run: |
sed -e 's/libs\//dist\/libs\//g' pnpm-workspace.yaml > pnpm-workspace-dist.yaml
sed -e 's/packages\//dist\/packages\//g' pnpm-workspace.yaml > pnpm-workspace-dist.yaml
mv pnpm-workspace-dist.yaml pnpm-workspace.yaml
- name: Create Release Pull Request or Publish packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/__code-analysis--codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ jobs:
- name: Upload Lint CodeQL
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: reports/libs/nx-mesh/lint.sarif
sarif_file: reports/packages/nx-mesh/lint.sarif
wait-for-processing: true
2 changes: 1 addition & 1 deletion .github/workflows/__code-analysis--sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
id: version
uses: notiz-dev/github-action-json-property@a5a9c668b16513c737c3e1f8956772c99c73f6e8 # v0.2.0
with:
path: 'libs/nx-mesh/package.json'
path: 'packages/nx-mesh/package.json'
prop_path: 'version'

- name: SonarCloud Scan
Expand Down
2 changes: 1 addition & 1 deletion .lintstagedrc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default {
'*': () => ['nx-cloud record -- nx format:write'],
'{nx,workspace}.json': () => ['nx-cloud record -- nx workspace-lint --fix'],
'**/*.{js,jsx,ts,tsx}': () => ['nx affected --target=lint --fix'],
'{examples,libs}/**/*.*': () => [
'{examples,packages}/**/*.*': () => [
'nx affected --target=build --parallel=2',
'nx affected --target=build --configuration=production --parallel=2',
'nx affected --target=test --parallel=2',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ export default {
'^.+\\.[tj]s$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/libs/nx-mesh',
coverageDirectory: '../../coverage/packages/nx-mesh',
};
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"url": "git://github.com/domjtalbot/nx-mesh/issues"
},
"repository": {
"directory": "libs/nx-mesh",
"directory": "packages/nx-mesh",
"type": "git",
"url": "git://github.com/domjtalbot/nx-mesh.git"
},
Expand Down
30 changes: 15 additions & 15 deletions libs/nx-mesh/project.json → packages/nx-mesh/project.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"name": "nx-mesh",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/nx-mesh/src",
"sourceRoot": "packages/nx-mesh/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/nx-mesh",
"main": "libs/nx-mesh/src/index.ts",
"tsConfig": "libs/nx-mesh/tsconfig.lib.json",
"outputPath": "dist/packages/nx-mesh",
"main": "packages/nx-mesh/src/index.ts",
"tsConfig": "packages/nx-mesh/tsconfig.lib.json",
"assets": [
"README.md",
"CHANGELOG.md",
"LICENSE",
"libs/nx-mesh/*.md",
"packages/nx-mesh/*.md",
{
"input": "./libs/nx-mesh/src",
"input": "./packages/nx-mesh/src",
"glob": "**/!(*.ts)",
"output": "./src"
},
{
"input": "./libs/nx-mesh/src",
"input": "./packages/nx-mesh/src",
"glob": "**/*.d.ts",
"output": "./src"
},
{
"input": "./libs/nx-mesh",
"input": "./packages/nx-mesh",
"glob": "generators.json",
"output": "."
},
{
"input": "./libs/nx-mesh",
"input": "./packages/nx-mesh",
"glob": "executors.json",
"output": "."
}
Expand All @@ -43,27 +43,27 @@
"executor": "@nrwl/linter:eslint",
"outputs": [
"{options.outputFile}",
"{workspaceRoot}/reports/libs/nx-mesh"
"{workspaceRoot}/reports/packages/nx-mesh"
],
"options": {
"lintFilePatterns": ["libs/nx-mesh/**/*.ts"]
"lintFilePatterns": ["packages/nx-mesh/**/*.ts"]
},
"configurations": {
"codeql": {
"format": "@microsoft/eslint-formatter-sarif",
"outputFile": "reports/libs/nx-mesh/lint.sarif"
"outputFile": "reports/packages/nx-mesh/lint.sarif"
},
"reports": {
"format": "json",
"outputFile": "reports/libs/nx-mesh/lint.json"
"outputFile": "reports/packages/nx-mesh/lint.json"
}
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["{workspaceRoot}/coverage/libs/nx-mesh"],
"outputs": ["{workspaceRoot}/coverage/packages/nx-mesh"],
"options": {
"jestConfig": "libs/nx-mesh/jest.config.ts",
"jestConfig": "packages/nx-mesh/jest.config.ts",
"passWithNoTests": true
}
}
Expand Down
File renamed without changes.
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 pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages:
- libs/*
- packages/*
10 changes: 5 additions & 5 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ sonar.projectKey=domjtalbot_nx-mesh

# compile-swc.ts & swc.impl.ts are both modified files
# from the Nx source code.
sonar.exclusions=**/example/*,./libs/nx-mesh/src/executors/build-swc/swc-executor/compile-swc.ts,./libs/nx-mesh/src/executors/build-swc/swc-executor/swc.impl.ts
sonar.sources=libs/nx-mesh
sonar.exclusions=**/example/*,./packages/nx-mesh/src/executors/build-swc/swc-executor/compile-swc.ts,./packages/nx-mesh/src/executors/build-swc/swc-executor/swc.impl.ts
sonar.sources=packages/nx-mesh

sonar.eslint.reportPaths=./reports/libs/nx-mesh/lint.json
sonar.javascript.lcov.reportPaths=./coverage/libs/nx-mesh/lcov.info
sonar.test.inclusions=libs/nx-mesh/**/*.spec.*
sonar.eslint.reportPaths=./reports/packages/nx-mesh/lint.json
sonar.javascript.lcov.reportPaths=./coverage/packages/nx-mesh/lcov.info
sonar.test.inclusions=packages/nx-mesh/**/*.spec.*
2 changes: 1 addition & 1 deletion tools/scripts/nx-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function installUpdates {
pnpm update \
@nrwl/devkit@${version} \
@nrwl/js@${version} && \
cd libs/nx-mesh && \
cd packages/nx-mesh && \
pnpm update \
@nrwl/cypress@^${version} \
@nrwl/devkit@^${version} \
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@nx-mesh/examples-sdk-soap--country-info/*": [
"examples/sdk-soap--country-info/src/lib/*"
],
"nx-mesh": ["libs/nx-mesh/src/index.ts"]
"nx-mesh": ["packages/nx-mesh/src/index.ts"]
}
},
"exclude": ["node_modules", "tmp"]
Expand Down

0 comments on commit 3b9261b

Please sign in to comment.