Skip to content

Commit 651b108

Browse files
committed
@atlaspack/types-internal
Remove libgit dependency Uses git CLI instead of libgit since we can't use it fully due to sparse checkouts. Test Plan: yarn test:integration Reviewers: marcins, JakeLane, pancaspe87, csowden-atlassian, alshdavid, mattcompiles Reviewed By: alshdavid, pancaspe87, mattcompiles, csowden-atlassian, marcins, JakeLane Pull Request: #589 Fix: Running benchmarks from temp directory (#590)
1 parent 4b10a01 commit 651b108

File tree

32 files changed

+119
-106
lines changed

32 files changed

+119
-106
lines changed

packages/core/types-internal/package.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/core/types-internal/scripts/build-ts.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/core/types-internal/scripts/build-ts.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/dev/eslint-plugin-internal/test/rules/no-relative-import.test.js

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,34 @@ const rule = require('../../src/rules/no-relative-import');
66

77
const filename = __filename;
88

9-
new RuleTester({
10-
parser: require.resolve('@babel/eslint-parser'),
11-
parserOptions: {ecmaVersion: 2018, sourceType: 'module'},
12-
}).run('no-relative-import', rule, {
13-
valid: [{code: "import logger from '@atlaspack/logger';", filename}],
14-
invalid: [
15-
{
16-
code: `import Logger from '../../../../core/logger/src/Logger';`,
17-
errors: [
18-
{
19-
message: `Import for monorepo package '@atlaspack/logger' should be absolute.`,
20-
},
21-
],
22-
filename,
23-
output: "import Logger from '@atlaspack/logger/src/Logger';",
24-
},
25-
{
26-
code: `import type { PluginOptions } from '../../../../core/types-internal/src';`,
27-
errors: [
28-
{
29-
message: `Import for monorepo package '@atlaspack/types-internal' should be absolute.`,
30-
},
31-
],
32-
filename,
33-
output: "import type { PluginOptions } from '@atlaspack/types-internal';",
34-
},
35-
],
9+
describe('eslint-rules', () => {
10+
new RuleTester({
11+
parser: require.resolve('@babel/eslint-parser'),
12+
parserOptions: {ecmaVersion: 2018, sourceType: 'module'},
13+
}).run('no-relative-import', rule, {
14+
valid: [{code: "import logger from '@atlaspack/logger';", filename}],
15+
invalid: [
16+
{
17+
code: `import Logger from '../../../../core/logger/src/Logger';`,
18+
errors: [
19+
{
20+
message: `Import for monorepo package '@atlaspack/logger' should be absolute.`,
21+
},
22+
],
23+
filename,
24+
output: "import Logger from '@atlaspack/logger/src/Logger';",
25+
},
26+
{
27+
code: `import type { PluginOptions } from '../../../../unified/src/types-internal';`,
28+
errors: [
29+
{
30+
message: `Import for monorepo package '@atlaspack/unified' should be absolute.`,
31+
},
32+
],
33+
filename,
34+
output:
35+
"import type { PluginOptions } from '@atlaspack/unified/types-internal';",
36+
},
37+
],
38+
});
3639
});
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from '@atlaspack/unified/types-internal';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@atlaspack/unified/types-internal');
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// @flow
2+
3+
export * from '@atlaspack/unified/src/types-internal/index.js';
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "@atlaspack/types-internal",
3+
"version": "2.14.6",
4+
"license": "(MIT OR Apache-2.0)",
5+
"main": "index.js",
6+
"types": "index.d.ts",
7+
"type": "commonjs",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/atlassian-labs/atlaspack.git"
11+
},
12+
"publishConfig": {
13+
"access": "public"
14+
},
15+
"dependencies": {
16+
"@atlaspack/unified": "2.14.1"
17+
}
18+
}

packages/transformers/html/test/HTMLTransformer.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import {type PostHTMLNode, render} from 'posthtml-render';
44
import {parseHTML, transformerOpts} from '../src/HTMLTransformer';
55
import assert from 'assert';
6-
import type {PluginOptions} from '../../../core/types-internal/src';
6+
import type {PluginOptions} from '../../../unified/src/types-internal/index.js';
77

88
function normalizeHTML(code: string): string {
99
const ast = parseHTML(code, true);

0 commit comments

Comments
 (0)