Skip to content

Commit 4475a61

Browse files
committed
chore: adds beta config to package.json for v4 release
1 parent a7589db commit 4475a61

File tree

2 files changed

+42
-99
lines changed

2 files changed

+42
-99
lines changed

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
node-version: '18.x'
1717
registry-url: 'https://registry.npmjs.org'
1818
- run: npm ci
19-
- run: npm publish
19+
- run: npm publish --tag beta
2020
env:
2121
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2222
publish-git:
@@ -29,6 +29,6 @@ jobs:
2929
registry-url: 'https://npm.pkg.github.com'
3030
scope: '@contentstack'
3131
- run: npm ci
32-
- run: npm publish
32+
- run: npm publish --tag beta
3333
env:
3434
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 40 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,50 @@
11
{
2-
"name": "contentstack",
3-
"version": "3.18.0",
4-
"description": "Contentstack Javascript SDK",
5-
"homepage": "https://www.contentstack.com/",
6-
"author": {
7-
"name": "Contentstack",
8-
"url": "https://www.contentstack.com/"
2+
"name": "@contentstack/delivery-sdk",
3+
"version": "4.0.0-beta.1",
4+
"type": "commonjs",
5+
"main": "./dist/cjs/src/index.js",
6+
"types": "./dist/types/src/index.d.ts",
7+
"publishConfig": {
8+
"tag": "beta"
99
},
10-
"main": "dist/node/contentstack.js",
11-
"browser": "dist/web/contentstack.js",
12-
"react-native": "dist/react-native/contentstack.js",
13-
"types": "./index.d.ts",
14-
1510
"scripts": {
16-
"test": "npm run test:e2e && npm run test:typescript",
17-
"test:e2e": "tape test/index.js | tap-html --out ./tap-html.html",
18-
"test:typescript": "jest --config jest.config.js --testPathPattern=test/typescript",
19-
"automate": "node test.js",
20-
"build:node": "webpack --config webpack/webpack.node.js",
21-
"build:web": "webpack --config webpack/webpack.web.js",
22-
"build:react-native": "webpack --config webpack/webpack.react-native.js",
23-
"build:native-script": "webpack --config webpack/webpack.nativescript.js",
24-
"build": "npm run build:node && npm run build:web && npm run build:react-native && npm run build:native-script",
25-
"generate-docs": "node_modules/.bin/jsdoc --configure docs-config.json --verbose",
26-
"prepare": "npm run build",
27-
"pretest": "npm run build"
11+
"prepack": "npm run test",
12+
"test": "jest ./test/unit",
13+
"test:unit": "jest ./test/unit",
14+
"test:api": "jest ./test/api",
15+
"lint": "eslint . -c .eslintrc.json",
16+
"clean": "node tools/cleanup",
17+
"package": "npm run build && npm pack",
18+
"build": "npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:types",
19+
"build:cjs": "node tools/cleanup cjs && tsc -p config/tsconfig.cjs.json",
20+
"build:esm": "node tools/cleanup esm && tsc -p config/tsconfig.esm.json",
21+
"build:umd": "node tools/cleanup umd && webpack --config config/webpack.config.js",
22+
"build:types": "node tools/cleanup types && tsc -p config/tsconfig.types.json"
2823
},
29-
"repository": {
30-
"type": "git",
31-
"url": "https://github.com/contentstack/contentstack-javascript.git"
32-
},
33-
"_shasum": "a328ed07240476a26b31a23261355dc929e1da63",
34-
"_from": "contentstack@latest",
35-
"engines": {
36-
"node": ">= 10.14.2"
37-
},
38-
"_npmUser": {
39-
"name": "mynk",
40-
"email": "[email protected]"
41-
},
42-
"maintainers": [
43-
{
44-
"name": "uttamukkoji",
45-
"email": "[email protected]"
46-
},
47-
{
48-
"name": "hiteshbal",
49-
"email": "[email protected]"
50-
},
51-
{
52-
"name": "mynk",
53-
"email": "[email protected]"
54-
}
24+
"dependencies": {
25+
"@contentstack/core": "^1.0.1",
26+
"@contentstack/utils": "^1.3.1",
27+
"@types/humps": "^2.0.6",
28+
"dotenv": "^16.3.1",
29+
"humps": "^2.0.1"
30+
},
31+
"files": [
32+
"dist",
33+
"package.json",
34+
"README.md"
5535
],
56-
"dist": {
57-
"shasum": "a328ed07240476a26b31a23261355dc929e1da63",
58-
"tarball": "https://registry.npmjs.org/contentstack/-/contentstack-3.16.1.tgz"
59-
},
60-
"license": "MIT",
61-
"directories": {},
62-
"_resolved": "https://registry.npmjs.org/contentstack/-/contentstack-3.16.1.tgz",
63-
"_npmOperationalInternal": {
64-
"host": "packages-18-east.internal.npmjs.com",
65-
"tmp": "tmp/contentstack-3.15.0.tgz_1477830884275_0.9869455888401717"
66-
},
6736
"devDependencies": {
68-
"@babel/core": "^7.23.3",
69-
"@babel/preset-env": "^7.23.3",
70-
"@babel/runtime": "^7.23.4",
71-
"@types/jest": "^26.0.24",
72-
"babel-loader": "^9.1.3",
73-
"clean-webpack-plugin": "^4.0.0",
74-
"compression-webpack-plugin": "^10.0.0",
75-
"dotenv": "^16.0.3",
76-
"es3ify-loader": "0.2.0",
77-
"fetch-mock-jest": "^1.3.0",
78-
"http-proxy-agent": "^3.0.0",
37+
"@nrwl/jest": "^17.2.8",
38+
"@types/jest": "^29.5.11",
39+
"axios-mock-adapter": "^1.22.0",
40+
"babel-jest": "^29.7.0",
7941
"jest": "^29.7.0",
80-
"jest-html-reporters": "^2.1.7",
81-
"jsdoc": "^4.0.2",
82-
"jshint": "^2.13.6",
83-
"minami": "^1.2.3",
84-
"node-request-interceptor": "^0.6.3",
85-
"nodemailer": "^6.9.1",
86-
"string-replace-loader": "^3.1.0",
87-
"tap-html": "^1.1.0",
88-
"tap-json": "1.0.0",
89-
"tape": "4.8.0",
90-
"terser-webpack-plugin": "^5.3.7",
42+
"jest-environment-jsdom": "^29.7.0",
43+
"jest-html-reporters": "^3.1.7",
44+
"jest-junit": "^16.0.0",
9145
"ts-jest": "^29.1.1",
92-
"typescript": "^4.9.5",
93-
"uglify-js": "2.8.29",
94-
"webpack": "^5.89.0",
95-
"webpack-cli": "^4.10.0",
96-
"webpack-md5-hash": "0.0.5",
97-
"webpack-merge": "4.1.0",
98-
"webpack-node-externals": "^3.0.0"
99-
},
100-
"dependencies": {
101-
"@contentstack/utils": "^1.2.0",
102-
"es6-promise": "^4.1.1",
103-
"isomorphic-fetch": "^3.0.0",
104-
"localStorage": "1.0.4",
105-
"qs": "^6.11.2"
46+
"ts-loader": "^9.5.1",
47+
"ts-node": "10.9.2",
48+
"webpack-cli": "^5.1.4"
10649
}
10750
}

0 commit comments

Comments
 (0)