openchemlib 8.20.2 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "openchemlib",
3
- "version": "8.20.2",
3
+ "version": "9.0.0",
4
+ "type": "module",
4
5
  "description": "Manipulate molecules",
5
6
  "keywords": [
6
7
  "chemistry",
@@ -9,26 +10,19 @@
9
10
  "SMILES"
10
11
  ],
11
12
  "scripts": {
12
- "build:min": "node scripts/build.js build --mode=min",
13
- "build:pretty": "node scripts/build.js build --mode=pretty -s pretty",
14
- "compile:min": "node scripts/build.js compile --mode=min",
15
- "compile:pretty": "node scripts/build.js compile --mode=pretty",
16
- "copy:openchemlib": "node scripts/build.js copy:openchemlib",
17
- "export": "node scripts/build.js export",
18
- "build": "npm run build:min && npm run build-full-pretty",
19
- "build-core": "npm run build:min -- -m core",
20
- "build-debug-core": "npm run build:pretty -- -m core --verbose",
21
- "build-debug-full": "npm run build:pretty -- -m full --verbose",
22
- "build-debug-minimal": "npm run build:pretty -- -m minimal --verbose",
23
- "build-esm": "npm run build-full && npm run build-esm-bundle-export",
24
- "build-esm-bundle": "esbuild full.js --bundle --sourcemap --format=esm --outfile=distesm/full.js",
25
- "build-esm-bundle-export": "npm run build-esm-bundle && node scripts/build_esm_bundle_types.js",
26
- "build-esm-bundle-types": "node scripts/esm_bundle_types.js",
27
- "build-esm-bundle-watch": "npm run build-esm-bundle -- --watch",
28
- "build-help": "node scripts/build_help.mjs",
29
- "build-full": "npm run build:min -- -m full",
30
- "build-full-pretty": "npm run build:pretty -- -m full",
31
- "build-minimal": "npm run build:min -- -m minimal",
13
+ "build": "npm run build-java && npm run build-js && npm run build-resources",
14
+ "build-help": "node scripts/build_help.js",
15
+ "build-java": "npm run build-java-min && npm run build-java-debug",
16
+ "build-java-debug": "node scripts/build.js build --mode=pretty -s debug",
17
+ "build-java-debug-verbose": "npm run build-java-debug -- --verbose",
18
+ "build-java-min": "node scripts/build.js build --mode=min",
19
+ "build-js": "npm run build-js-min && npm run build-js-debug && npm run build-js-types",
20
+ "build-js-debug": "esbuild lib/index.debug.js --bundle --format=esm --outfile=dist/openchemlib.debug.js",
21
+ "build-js-min": "esbuild lib/index.js --minify --bundle --format=esm --outfile=dist/openchemlib.js",
22
+ "build-js-types": "node -e \"fs.cpSync('lib/index.d.ts', 'dist/openchemlib.d.ts')\"",
23
+ "build-resources": "node scripts/build_resources.js",
24
+ "clean": "node scripts/clean.js",
25
+ "copy-openchemlib": "node scripts/build.js copy:openchemlib",
32
26
  "eslint": "eslint .",
33
27
  "eslint-fix": "npm run eslint -- --fix",
34
28
  "prettier": "prettier --check .",
@@ -39,30 +33,18 @@
39
33
  "vite-build": "vite build",
40
34
  "vite-preview": "vite preview"
41
35
  },
42
- "main": "./core.js",
43
36
  "exports": {
44
- ".": "./core.js",
45
- "./minimal": "./minimal.js",
46
- "./minimal.js": "./minimal.js",
47
- "./core": "./core.js",
48
- "./core.js": "./core.js",
49
- "./full": "./full.js",
50
- "./full.js": "./full.js",
51
- "./full.pretty": "./full.pretty.js",
52
- "./full.pretty.js": "./full.pretty.js"
37
+ ".": {
38
+ "types": "./dist/openchemlib.d.ts",
39
+ "default": "./dist/openchemlib.js"
40
+ },
41
+ "./debug": {
42
+ "types": "./dist/openchemlib.d.ts",
43
+ "default": "./dist/openchemlib.debug.js"
44
+ }
53
45
  },
54
46
  "files": [
55
- "dist",
56
- "lib",
57
- "types.d.ts",
58
- "minimal.js",
59
- "minimal.d.ts",
60
- "core.js",
61
- "core.d.ts",
62
- "full.js",
63
- "full.d.ts",
64
- "full.pretty.js",
65
- "full.pretty.d.ts"
47
+ "dist"
66
48
  ],
67
49
  "repository": {
68
50
  "type": "git",
@@ -78,7 +60,7 @@
78
60
  },
79
61
  "homepage": "https://github.com/cheminfo/openchemlib-js",
80
62
  "devDependencies": {
81
- "@types/node": "^22.14.0",
63
+ "@types/node": "^22.14.1",
82
64
  "autoprefixer": "^10.4.21",
83
65
  "benchmark": "^2.1.4",
84
66
  "esbuild": "^0.25.2",
@@ -86,7 +68,7 @@
86
68
  "eslint-config-cheminfo-typescript": "^18.0.0",
87
69
  "fast-png": "^6.3.0",
88
70
  "globals": "^16.0.0",
89
- "gwt-api-exporter": "^2.0.0",
71
+ "gwt-api-exporter": "^3.0.0",
90
72
  "image-js": "0.0.0-next-692b15513a",
91
73
  "openchemlib-utils": "^6.7.0",
92
74
  "postcss": "^8.5.3",
package/core.d.ts DELETED
@@ -1,15 +0,0 @@
1
- export * from './minimal';
2
- export {
3
- CanonizerUtil,
4
- ConformerGenerator,
5
- DruglikenessPredictor,
6
- DrugScoreCalculator,
7
- ForceFieldMMFF94,
8
- IInitializeConformersOptions,
9
- IParameterizedString,
10
- MoleculeProperties,
11
- ReactionEncoder,
12
- Reactor,
13
- Transformer,
14
- ToxicityPredictor,
15
- } from './types';
package/core.js DELETED
@@ -1,24 +0,0 @@
1
- 'use strict';
2
-
3
- const OCL = require('./dist/openchemlib-core.js');
4
-
5
- exports.default = OCL;
6
- exports.CanonizerUtil = OCL.CanonizerUtil;
7
- exports.ConformerGenerator = OCL.ConformerGenerator;
8
- exports.DrugScoreCalculator = OCL.DrugScoreCalculator;
9
- exports.DruglikenessPredictor = OCL.DruglikenessPredictor;
10
- exports.ForceFieldMMFF94 = OCL.ForceFieldMMFF94;
11
- exports.Molecule = OCL.Molecule;
12
- exports.MoleculeProperties = OCL.MoleculeProperties;
13
- exports.Reaction = OCL.Reaction;
14
- exports.ReactionEncoder = OCL.ReactionEncoder;
15
- exports.Reactor = OCL.Reactor;
16
- exports.RingCollection = OCL.RingCollection;
17
- exports.SDFileParser = OCL.SDFileParser;
18
- exports.SSSearcher = OCL.SSSearcher;
19
- exports.SSSearcherWithIndex = OCL.SSSearcherWithIndex;
20
- exports.SmilesParser = OCL.SmilesParser;
21
- exports.ToxicityPredictor = OCL.ToxicityPredictor;
22
- exports.Transformer = OCL.Transformer;
23
- exports.Util = OCL.Util;
24
- exports.version = OCL.version;