Skip to content

Commit 7c1ea0a

Browse files
committed
Clean up package
1 parent cdba7b1 commit 7c1ea0a

File tree

4 files changed

+20
-21
lines changed

4 files changed

+20
-21
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
built/
1+
dist/
22
node_modules/
3-
.vscode/
4-
**/*.js
3+
.vscode/

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
22
"name": "typescript-plugin-styled-components",
33
"version": "0.0.1",
4-
"description": "TypeScript transformer for improving the debugging experience to styled-components",
5-
"main": "index.js",
4+
"description": "TypeScript transformer for improving the debugging experience of styled-components",
5+
"main": "dist/index.js",
66
"repository": "https://github.com/Igorbek/typescript-plugin-styled-components.git",
77
"author": "Igor Oleinikov <igor@oleinikov.ru>",
88
"license": "MIT",
99
"scripts": {
10-
"build-run": "tsc && node ./src/runner.js",
11-
"run-script": "./src/runner.js",
12-
"test-baselines": "jest --config ./jest.config.json",
13-
"test:watch": "yarn test-baselines -- --watch",
14-
"test": "yarn test-baselines"
10+
"build": "tsc",
11+
"test:baselines": "jest --config ./jest.config.json",
12+
"test:watch": "yarn test:baselines -- --watch",
13+
"test": "yarn test:baselines"
1514
},
15+
"typings": "dist/index.d.ts",
1616
"dependencies": {
1717
"jest": "20",
18-
"typescript": "2.3"
18+
"typescript": "~2.3.4 || 2.4"
1919
},
2020
"devDependencies": {
2121
"@types/jest": "^19.2.4",
2222
"@types/node": "^7.0.31",
2323
"styled-components": "^2.0.1",
2424
"ts-jest": "20"
2525
}
26-
}
26+
}

tsconfig.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
// "allowJs": true, /* Allow javascript files to be compiled. */
1010
// "checkJs": true, /* Report errors in .js files. */
1111
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
12-
// "declaration": true, /* Generates corresponding '.d.ts' file. */
13-
// "sourceMap": true, /* Generates corresponding '.map' file. */
12+
"declaration": true, /* Generates corresponding '.d.ts' file. */
13+
"sourceMap": true, /* Generates corresponding '.map' file. */
1414
// "outFile": "./", /* Concatenate and emit output to single file. */
15-
// "outDir": "./", /* Redirect output structure to the directory. */
16-
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
15+
"outDir": "./dist", /* Redirect output structure to the directory. */
16+
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
1717
// "removeComments": true, /* Do not emit comments to output. */
1818
// "noEmit": true, /* Do not emit outputs. */
1919
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
2020
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
2121
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
2222

2323
/* Strict Type-Checking Options */
24-
"strict": true
24+
"strict": true,
2525
/* Enable all strict type-checking options. */
2626
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
2727
// "strictNullChecks": true, /* Enable strict null checks. */
@@ -35,7 +35,7 @@
3535
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
3636

3737
/* Module Resolution Options */
38-
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
38+
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
3939
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
4040
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
4141
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2201,9 +2201,9 @@ type-check@~0.3.2:
22012201
dependencies:
22022202
prelude-ls "~1.1.2"
22032203

2204-
typescript@2.3:
2205-
version "2.3.4"
2206-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.3.4.tgz#3d38321828231e434f287514959c37a82b629f42"
2204+
"typescript@~2.3.4 || 2.4":
2205+
version "2.4.0"
2206+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.4.0.tgz#aef5a8d404beba36ad339abf079ddddfffba86dd"
22072207

22082208
ua-parser-js@^0.7.9:
22092209
version "0.7.12"

0 commit comments

Comments
 (0)