Skip to content

Commit 50cf8e3

Browse files
committed
Explicitly specify files to include in npm package
1 parent ee2c351 commit 50cf8e3

File tree

7 files changed

+29
-71
lines changed

7 files changed

+29
-71
lines changed

.npmignore

-55
This file was deleted.

docs/.npmignore

-4
This file was deleted.

jscomp/artifacts.json

-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
{
22
"": [
3-
".gitattributes",
4-
".gitmodules",
5-
"CONTRIBUTING.md",
63
"COPYING",
74
"COPYING.LESSER",
85
"Changes.md",
96
"Credits.md",
10-
"DCO.md",
117
"LICENSE",
128
"README.md",
139
"bsc",
14-
"bsconfig.json",
1510
"bsrefmt",
1611
"package.json",
1712
"rescript"
@@ -33,8 +28,6 @@
3328
"rescript.exe"
3429
],
3530
"docs/docson": [
36-
"LICENSE",
37-
"README.md",
3831
"build-schema.json"
3932
],
4033
"freebsd": [

jscomp/build_tests/bucklescript-tea/.npmignore

-5
This file was deleted.

lib/4.06.1/.npmignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
unstable
2+
*.d
3+
bsdep*
4+
bspp.ml*
5+
*.cm*

package.json

+19
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,25 @@
2424
},
2525
"version": "10.0.0-alpha.1",
2626
"description": "ReScript toolchain",
27+
"files": [
28+
"Changes.md",
29+
"Credits.md",
30+
"bsc",
31+
"bsrefmt",
32+
"rescript",
33+
"darwin",
34+
"darwinarm64",
35+
"freebsd",
36+
"linux",
37+
"openbsd",
38+
"win32",
39+
"docs/docson/build-schema.json",
40+
"jscomp/stubs/ext_basic_hash_stubs.c",
41+
"lib",
42+
"scripts",
43+
"vendor/ninja.tar.gz",
44+
"vendor/ocaml.tar.gz"
45+
],
2746
"repository": {
2847
"type": "git",
2948
"url": "git+https://github.com/rescript-lang/rescript-compiler.git"

scripts/.npmignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
moveArtifacts.sh
2+
deps.js
3+
format.js
4+
local_br_clean.sh
5+
setVersion.js

0 commit comments

Comments
 (0)