Skip to content

Commit 47c4eab

Browse files
committed
moved form lib to dist and imporved npm publishing content
1 parent b095cf0 commit 47c4eab

7 files changed

Lines changed: 13 additions & 8 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
node_modules
2-
lib
2+
dist
33
coverage
44

55
### VisualStudioCode Patch ###

.npmignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import importPlugin from 'eslint-plugin-import';
55
export default [
66
{
77
files: ['src/**/*.ts', 'test/**/*.test.ts'],
8-
ignores: ['lib/**', 'node_modules/**'],
8+
ignores: ['dist/**', 'node_modules/**'],
99
languageOptions: {
1010
parser: tsParser,
1111
parserOptions: {

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
testEnvironmentOptions: {
88
customExportConditions: ["node"],
99
},
10-
testPathIgnorePatterns: ["/node_modules/", "/lib/"],
10+
testPathIgnorePatterns: ["/node_modules/", "/dist/"],
1111
transform: {
1212
"^.+\\.[tj]sx?$": ["babel-jest", { configFile: "./babel.config.js" }],
1313
},

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@
33
"type": "module",
44
"version": "3.0.9",
55
"description": "Core business logic of SolidOS",
6-
"main": "lib/index.js",
6+
"main": "dist/solid-logic.js",
7+
"types": "dist/index.d.ts",
8+
"files": [
9+
"dist/",
10+
"README.md",
11+
"LICENSE"
12+
],
713
"scripts": {
8-
"clean": "rm -rf lib src/versionInfo.ts",
14+
"clean": "rm -rf dist src/versionInfo.ts",
915
"build": "npm run clean && npm run build-types && npm run build-version && rollup -c",
1016
"build-version": "./timestamp.sh > src/versionInfo.ts && eslint 'src/versionInfo.ts' --fix",
1117
"build-types": "tsc --emitDeclarationOnly",

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const license = fs.readFileSync('./LICENSE', 'utf8')
1010
export default {
1111
input: 'src/index.ts',
1212
output: {
13-
file: 'lib/solid-logic.js',
13+
file: 'dist/solid-logic.js',
1414
format: 'esm',
1515
banner: `/*!\n${license}\n*/`,
1616
sourcemap: true

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"sourceMap": true /* Generates corresponding '.map' file. */,
1818
// "outFile": "./", /* Concatenate and emit output to single file. */
1919

20-
"outDir": "lib" /* Redirect output structure to the directory. */,
20+
"outDir": "dist" /* Redirect output structure to the directory. */,
2121
"rootDir": "src/",
2222

2323
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */

0 commit comments

Comments
 (0)