Skip to content

Commit 1805455

Browse files
committed
feat: 🎸 export EsNext modules
1 parent b46164f commit 1805455

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

‎.travis.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ node_js:
1212
script:
1313
- yarn test
1414
- yarn build
15+
- yarn build:modules
1516
matrix:
1617
allow_failures: []
1718
fast_finish: true

‎package.json‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@
77
"type": "git",
88
"url": "https://github.com/streamich/libreact.git"
99
},
10-
"files": ["lib/"],
10+
"files": [
11+
"lib/",
12+
"modules/"
13+
],
1114
"scripts": {
1215
"start": "yarn test:story",
1316
"clean": "rimraf lib modules && yarn test:story:clean && yarn docs:clean",
1417
"build": "tsc",
18+
"build:modules": "tsc --project tsconfig.es6.json",
1519
"test": "yarn test:server && yarn test:client",
1620
"test:server": "mocha -r ts-node/register src/**/*.test-server.ts*",
1721
"test:client": "jest",

‎tsconfig.es6.json‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ESNext",
4+
"module": "ESNext",
5+
"moduleResolution": "Node",
6+
"removeComments": true,
7+
"noImplicitAny": false,
8+
"outDir": "./modules",
9+
"allowJs": false,
10+
"allowSyntheticDefaultImports": true,
11+
"jsx": "react",
12+
"jsxFactory": "h",
13+
"skipDefaultLibCheck": true,
14+
"skipLibCheck": true,
15+
"experimentalDecorators": true,
16+
"importHelpers": true,
17+
"pretty": true,
18+
"sourceMap": false,
19+
"esModuleInterop": true,
20+
"noEmitHelpers": true,
21+
"noErrorTruncation": true,
22+
"noFallthroughCasesInSwitch": true,
23+
"noImplicitReturns": true,
24+
"declaration": true,
25+
"lib": ["dom", "es5", "es6", "es7", "es2015", "es2017", "scripthost", "dom.iterable"]
26+
},
27+
"include": ["typing.d.ts", "src"],
28+
"exclude": [
29+
"node_modules",
30+
"lib",
31+
"**/__tests__/**/*",
32+
"**/__story__/**/*",
33+
"*.test.ts",
34+
"*.test.tsx"
35+
]
36+
}

0 commit comments

Comments
 (0)