Skip to content

Commit

Permalink
chore: moving the package code into a src/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Aug 31, 2020
1 parent 6257159 commit e78554e
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 11 deletions.
6 changes: 3 additions & 3 deletions __tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ const path = require('path');
const glob = require('glob');
const fs = require('fs').promises;

const syntaxHighlighter = require('..');
const uppercase = require('../uppercase');
const canoncial = require('../canonical');
const syntaxHighlighter = require('../src');
const uppercase = require('../src/uppercase');
const canoncial = require('../src/canonical');

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

Expand Down
2 changes: 1 addition & 1 deletion __tests__/uppercase.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { uppercase } = require('..');
const { uppercase } = require('../src');

test('should uppercase known languages', () => {
expect(uppercase('http')).toBe('HTTP');
Expand Down
8 changes: 1 addition & 7 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ const path = require('path');

module.exports = {
coveragePathIgnorePatterns: ['<rootDir>/__tests__/__fixtures__/'],
collectCoverageFrom: [
'**/*.{js,jsx}',
'!lib/*.js',
'!**/node_modules/**',
'!jest.config.js',
'!**/coverage/lcov-report/**',
],
collectCoverageFrom: ['src/*.{js,jsx}'],
setupFiles: [path.join(__dirname, '/lib/enzyme')],
testPathIgnorePatterns: ['<rootDir>/__tests__/__fixtures__/'],
transform: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@readme/syntax-highlighter",
"description": "ReadMe's React-based syntax highlighter",
"version": "7.1.0",
"main": "src/index.js",
"dependencies": {
"@readme/variable": "^7.1.0",
"codemirror": "^5.48.2",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e78554e

Please sign in to comment.