Skip to content

Commit 865c3ed

Browse files
Remove old build files, cleanup package.json (#447)
1 parent 21384b0 commit 865c3ed

File tree

5 files changed

+4
-60
lines changed

5 files changed

+4
-60
lines changed

__TESTS__/unit/analytics/analytics.node.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55

6-
import pkg from '../../../src/package.json';
6+
import pkg from '../../../package.json';
77
import {createNewImageWithAnalytics} from "./testUtils/createNewImageWithAnalytics";
88

99
// Since packageVersion value is only set during build, we need to mock it during tests

package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,14 @@
77
"test:size": "ts-node -O '{\"module\":\"CommonJS\"}' __TESTS_BUNDLE_SIZE__/bin/bin.ts",
88
"test:comp": "node ./scripts/updateCompliationTests.js && jest __TESTS__/compilationsOutput.test.ts --coverage",
99
"test:comp:service": "ts-node devTools/sanity/index.ts && jest __TESTS__/compilation.test.ts",
10-
"test:unit": "jest __TESTS__/unit --reporters default",
11-
"test:unit:watch": "jest __TESTS__/unit --watch --reporters default",
12-
"test:integration": "jest __TESTS__/integration",
13-
"test:integration:watch": "jest __TESTS__/integration --watch",
14-
"test:backcomp": "jest __TESTS__/backwardsComaptibility",
15-
"test:backcomp:watch": "jest __TESTS__/backwardsComaptibility --watch",
10+
"test:unit": "jest --reporters default",
11+
"test:unit:watch": "jest --watch --reporters default",
1612
"build": "bash ./scripts/build.sh",
1713
"test:types": "tsc --project tsconfig.test.json",
1814
"build:ESM": "tsc --project tsconfig.json",
1915
"build:UMD": "rollup -c",
2016
"build:docs": "node ./scripts/buildDocs.js",
2117
"build:entryPoints": "ts-node ./scripts/createEntrypoints.ts",
22-
"build:copyCleanPackageJSON": "ts-node scripts/copyPackageJsonToSrc.ts",
2318
"build:injectPackageVersion": "ts-node ./scripts/injectPackageVersionToDistFiles.ts",
2419
"build:updatePackageExports": "ts-node scripts/updatePackageJsonExports.ts",
2520
"lint": "npm run lint:src && npm run lint:test",
@@ -115,4 +110,4 @@
115110
"default": "./index.js"
116111
}
117112
}
118-
}
113+
}

scripts/build.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
set -e;
22

33
rimraf ./dist
4-
# the source code needs package.json in ./src/ level to compile correctly
5-
# we use it to extract the version number of the library
6-
# the relative import in the sourcecode is maintained in ./dist after
7-
# npm run build:entryPoints runs and copies package.json to ./dist
8-
# Temporary copy of package.json to ./src
9-
npm run build:copyCleanPackageJSON
104
npm run lint
115
npm run build:ESM
126
npm run build:UMD

scripts/copyPackageJsonToSrc.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/package.json

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)