Skip to content

Commit

Permalink
feat: delete @canyon/data
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Jul 18, 2024
1 parent f9743bf commit 137c95f
Show file tree
Hide file tree
Showing 20 changed files with 6 additions and 1,493 deletions.
2 changes: 1 addition & 1 deletion packages/canyon-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preinstall": "prisma generate && nest build"
},
"dependencies": {
"@canyon/data": "workspace:^",
"canyon-data": "0.1.1-alpha.6",
"@nestjs/apollo": "^12.1.0",
"@nestjs/common": "^10.3.9",
"@nestjs/config": "^3.2.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from '@nestjs/common';
import { PrismaService } from '../../../prisma/prisma.service';
import { genSummaryMapByCoverageMap, getSummaryByPath } from '@canyon/data';
import { genSummaryMapByCoverageMap, getSummaryByPath } from 'canyon-data';
import { mergeCoverageMap } from '../../../utils/coverage';
import { percent, removeNullKeys } from '../../../utils/utils';
import { PullChangeCodeAndInsertDbService } from '../common/pull-change-code-and-insert-db.service';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Injectable } from '@nestjs/common';
import { PrismaService } from 'src/prisma/prisma.service';
import { CoverageSummary } from '../models/coverage-summary';
import { genSummaryMapByCoverageMap } from '@canyon/data';
import { genSummaryMapByCoverageMap } from 'canyon-data';
import { TestExcludeService } from './common/test-exclude.service';
import { removeNullKeys } from '../../utils/utils';

Expand Down
2 changes: 1 addition & 1 deletion packages/canyon-backend/src/utils/coverage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as libCoverage from 'istanbul-lib-coverage';
import * as libSourceMaps from 'istanbul-lib-source-maps';
import { mergeCoverageMap as mergeCoverageMapOfCanyonData } from '@canyon/data';
import { mergeCoverageMap as mergeCoverageMapOfCanyonData } from 'canyon-data';
// import { merge_coverage_json_str } from 'canyon-data';
function parseInstrumentCwd(instrumentCwd) {
if (instrumentCwd.includes('=>')) {
Expand Down
26 changes: 0 additions & 26 deletions packages/canyon-data/.gitignore

This file was deleted.

31 changes: 0 additions & 31 deletions packages/canyon-data/package.json

This file was deleted.

80 changes: 0 additions & 80 deletions packages/canyon-data/src/coverage/index.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/canyon-data/src/coverage/test/coverage.test.ts

This file was deleted.

Loading

0 comments on commit 137c95f

Please sign in to comment.