Skip to content

Commit e78554e

Browse files
committed
chore: moving the package code into a src/ directory
1 parent 6257159 commit e78554e

File tree

9 files changed

+6
-11
lines changed

9 files changed

+6
-11
lines changed

__tests__/index.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ const path = require('path');
33
const glob = require('glob');
44
const fs = require('fs').promises;
55

6-
const syntaxHighlighter = require('..');
7-
const uppercase = require('../uppercase');
8-
const canoncial = require('../canonical');
6+
const syntaxHighlighter = require('../src');
7+
const uppercase = require('../src/uppercase');
8+
const canoncial = require('../src/canonical');
99

1010
const fixtures = glob.sync(path.join(__dirname, '/__fixtures__/*'));
1111

__tests__/uppercase.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { uppercase } = require('..');
1+
const { uppercase } = require('../src');
22

33
test('should uppercase known languages', () => {
44
expect(uppercase('http')).toBe('HTTP');

jest.config.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ const path = require('path');
22

33
module.exports = {
44
coveragePathIgnorePatterns: ['<rootDir>/__tests__/__fixtures__/'],
5-
collectCoverageFrom: [
6-
'**/*.{js,jsx}',
7-
'!lib/*.js',
8-
'!**/node_modules/**',
9-
'!jest.config.js',
10-
'!**/coverage/lcov-report/**',
11-
],
5+
collectCoverageFrom: ['src/*.{js,jsx}'],
126
setupFiles: [path.join(__dirname, '/lib/enzyme')],
137
testPathIgnorePatterns: ['<rootDir>/__tests__/__fixtures__/'],
148
transform: {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@readme/syntax-highlighter",
33
"description": "ReadMe's React-based syntax highlighter",
44
"version": "7.1.0",
5+
"main": "src/index.js",
56
"dependencies": {
67
"@readme/variable": "^7.1.0",
78
"codemirror": "^5.48.2",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)