Skip to content

Commit

Permalink
publish only specific files, round 2
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr committed Feb 5, 2021
1 parent b7547f8 commit 95bd597
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
24 changes: 24 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Specificty of the following rules matters.

# Ignore everything,
/**/*

# but include these folders
!/dist/**/*
!/src/**/*

# except for these files in the above folders.
/dist/**/*.test.*
/dist/tests/**/*
/src/**/*.test.*
/src/tests/**/*

# The following won't work as you think it would.
# /**/*
# !/dist/**/*
# !/src/**/*
# /**/*.test.*

# Include these project-specific files.
!jsx-runtime.*
!babel-preset.cjs
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
"main": "dist/index.js",
"// main": "The 'main' field is fallback for legacy Node.js that has no type:module support, otherwise Node 13.2+ ignores it if type:module is set.",
"types": "dist/index.d.ts",
"files": [
"dist/",
"src/",
"jsx-runtime.*",
"babel-preset.cjs"
],
"scripts": {
"LUME SCRIPTS XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX": "",
"clean": "lume clean",
Expand All @@ -39,7 +33,7 @@
"prepare": "npm run build"
},
"dependencies": {
"@lume/variable": "^0.5.10",
"@lume/variable": "^0.5.11",
"babel-preset-solid": "0.23.0",
"lowclass": "^4.9.3",
"solid-js": "^0.23.0"
Expand Down

0 comments on commit 95bd597

Please sign in to comment.