Skip to content

Commit c23806f

Browse files
v1.0.2
1 parent ee761d1 commit c23806f

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ node_modules/
44
npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
7+
/lib/
78

89
# Editor directories and files
910
.idea

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"name": "@sixpence/js-utils",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "web core",
5-
"main": "index.js",
5+
"main": "lib/index.cjs.js",
6+
"module": "lib/index.esm.js",
7+
"typings": "lib/types/index.d.ts",
68
"repository": "https://github.com/CarlDuFromChina/js-utils",
79
"author": "Karl Du",
810
"license": "MIT",

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ export default [
1010
})],
1111
output: [
1212
{
13-
dir: 'dist',
13+
dir: 'lib',
1414
format: 'cjs',
1515
entryFileNames: '[name].cjs.js'
1616
},
1717
{
18-
dir: 'dist',
18+
dir: 'lib',
1919
format: 'esm',
2020
entryFileNames: '[name].esm.js'
2121
}

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"exclude": ["node_modules", "./dist"],
2+
"exclude": ["node_modules", "./dist", "./lib"],
33
"compilerOptions": {
44
"target": "ES6", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
55
"lib": ["DOM", "ES2015", "ES2016", "ES2017", "ES2019"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
66
"module": "ES6", /* Specify what module code is generated. */
77
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
88
"typeRoots": ["node_modules/@types"],
99
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
10-
"outDir": "./dist", /* Specify an output folder for all emitted files. */
11-
"declarationDir": "./dist/types", /* Specify the output directory for generated declaration files. */
10+
"outDir": "./lib", /* Specify an output folder for all emitted files. */
11+
"declarationDir": "./lib/types", /* Specify the output directory for generated declaration files. */
1212
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
1313
"strict": true, /* Enable all strict type-checking options. */
1414
}

0 commit comments

Comments
 (0)