Skip to content

Commit 862b193

Browse files
committed
Chore: new deploy method
1 parent 3da64d6 commit 862b193

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

index.js renamed to lib/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// process
2-
const typeChooserSync = require('./lib/process/typeChooser/typeChooserSync');
3-
const typeChooser = require('./lib/process/typeChooser/typeChooser');
2+
const typeChooserSync = require('./process/typeChooser/typeChooserSync');
3+
const typeChooser = require('./process/typeChooser/typeChooser');
44

55
// mapping
6-
const generateMappingSync = require('./lib/mapping/generateMappingSync');
7-
const generateMapping = require('./lib/mapping/generateMapping');
8-
const loadMapping = require('./lib/mapping/loadMapping');
6+
const generateMappingSync = require('./mapping/generateMappingSync');
7+
const generateMapping = require('./mapping/generateMapping');
8+
const loadMapping = require('./mapping/loadMapping');
99

1010
// config
11-
const includeConfig = require('./lib/config/includeConfig');
11+
const includeConfig = require('./config/includeConfig');
1212

1313
module.exports = {
1414
process: {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"name": "rename-css-selectors",
33
"version": "3.2.8",
44
"description": "Rename css classes and id's in files",
5-
"main": "./index.js",
5+
"main": "dest",
66
"scripts": {
77
"test": "nyc ava -s",
88
"build": "tsc && babel dest -d dest",
99
"lint": "eslint lib index.js test",
1010
"fix": "npm run lint -- --fix",
11+
"prepublish": "npm run build",
1112
"coveralls": "nyc report --reporter=text-lcov | coveralls"
1213
},
1314
"rcs": {

test/processJs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'path';
33
import fs from 'fs-extra';
44
import rcsCore from 'rcs-core';
55

6-
import rcs from '../';
6+
import rcs from '../lib';
77
import reset from './helpers/reset';
88

99
const testCwd = 'test/files/testCache';

test/processPug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'path';
33
import fs from 'fs-extra';
44
import rcsCore from 'rcs-core';
55

6-
import rcs from '../';
6+
import rcs from '../lib';
77
import reset from './helpers/reset';
88

99
const testCwd = 'test/files/testCache';

0 commit comments

Comments
 (0)