Skip to content

Commit f519b73

Browse files
authored
Revert "Use files property in package.json instead of .npmignore (#5274)"
This reverts commit acb8125.
1 parent acb8125 commit f519b73

File tree

5 files changed

+27
-18
lines changed

5 files changed

+27
-18
lines changed

.npmignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
*
2+
!ext/**/*
3+
!packages/*/lib/**/*
4+
!packages/*/src/**/*
5+
!packages/*/index.js
6+
!scripts/preinstall.js
7+
!vendor/**/*
8+
!LICENSE
9+
!LICENSE-3rdparty.csv
10+
!README.md
11+
!index.d.ts
12+
!index.js
13+
!esbuild.js
14+
!init.js
15+
!initialize.mjs
16+
!loader-hook.mjs
17+
!register.js
18+
!package.json
19+
!cypress/**/*
20+
!ci/**/*
21+
!version.js

esbuild.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
'use strict'
22

3+
// TODO: It shouldn't be necessary to disable n/no-unpublished-require - Research
4+
// eslint-disable-next-line n/no-unpublished-require
35
module.exports = require('./packages/datadog-esbuild/index.js')

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
'use strict'
22

3+
// TODO: It shouldn't be necessary to disable n/no-unpublished-require - Research
4+
// eslint-disable-next-line n/no-unpublished-require
35
module.exports = require('./packages/dd-trace')

init.js

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
/* eslint-disable no-var */
44

5+
// TODO: It shouldn't be necessary to disable n/no-unpublished-require - Research
6+
// eslint-disable-next-line n/no-unpublished-require
57
var guard = require('./packages/dd-trace/src/guardrails')
68

79
module.exports = guard(function () {

package.json

-18
Original file line numberDiff line numberDiff line change
@@ -80,24 +80,6 @@
8080
"engines": {
8181
"node": ">=18"
8282
},
83-
"files": [
84-
"ci/**/*",
85-
"cypress/**/*",
86-
"esbuild.js",
87-
"ext/**/*",
88-
"index.d.ts",
89-
"init.js",
90-
"initialize.mjs",
91-
"LICENSE-3rdparty.csv",
92-
"loader-hook.mjs",
93-
"packages/*/index.js",
94-
"packages/*/lib/**/*",
95-
"packages/*/src/**/*",
96-
"register.js",
97-
"scripts/preinstall.js",
98-
"vendor/**/*",
99-
"version.js"
100-
],
10183
"dependencies": {
10284
"@datadog/libdatadog": "^0.4.0",
10385
"@datadog/native-appsec": "8.4.0",

0 commit comments

Comments
 (0)