Skip to content

Commit

Permalink
Migrate to @jetstreamapp
Browse files Browse the repository at this point in the history
  • Loading branch information
paustint committed Jun 16, 2024
1 parent 56924e3 commit e4f0e59
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 28 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 6.0.0

June 16, 2024

- Package has been moved to `@jetstreamapp` npm organization

## 5.0.2

Jan 18, 2024
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2022 Austin Turner
Copyright 2024 Austin Turner

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@

**This library allows parsing and composing SOQL queries from Salesforce using JavaScript or Typescript.**

### Installation

👉 **As of version 6.0.0**, this package is now part of the `@jetstreamapp` npm organization.

```bash
npm install @jetstreamapp/soql-parser-js
```

**Available Features:**

1. Parse SOQL queries into a common `Query` data structure.
Expand Down
2 changes: 1 addition & 1 deletion bin/soql-parser-js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env node

require('../dist_cli/cli');
require('../dist/cli');
28 changes: 12 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
{
"name": "soql-parser-js",
"name": "@jetstreamapp/soql-parser-js",
"version": "5.0.2",
"description": "Salesforce.com SOQL parser and composer",
"main": "dist/index.js",
"module": "dist_esm/index.js",
"types": "dist/src/index.d.ts",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/cjs/src/index.d.ts",
"scripts": {
"clean": "rm -rf ./dist/*",
"clean:esm": "rm -rf ./dist_esm/*",
"clean:cli": "rm -rf ./dist_cli/*",
"prebuild": "npm run clean",
"build": "npm-run-all compile bundle:min build:esm build:cli",
"build:esm": "npm-run-all clean:esm compile:esm",
"build:cli": "npm-run-all clean:cli compile:cli",
"compile": "tsc --project tsconfig.json",
"compile:esm": "tsc --project tsconfig-esm.json",
"compile:cli": "tsc --project tsconfig-cli.json",
"build": "npm-run-all build:cjs bundle:cjs build:esm build:cli",
"build:cjs": "tsc --project tsconfig.json",
"build:esm": "tsc --project tsconfig-esm.json",
"build:cli": "tsc --project tsconfig-cli.json",
"bundle:regular": "webpack --config webpack-regular.config.js",
"bundle:min": "webpack --config webpack.config.js",
"bundle:cjs": "webpack --config webpack.config.js",
"tsc": "./node_modules/.bin/tsc",
"release": "release-it",
"copy-tc-to-docs": "ts-node ./tasks/copy-test-cases-to-docs.ts",
Expand All @@ -30,11 +26,11 @@
"bin": {
"soql-parser-js": "bin/soql-parser-js"
},
"publishConfig": {
"access": "public"
},
"files": [
"dist/**",
"dist_esm/**",
"dist_cli/**",
"src/**",
"bin/**",
"AUTHORS.md",
"CHANGELOG.md",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"lib": ["esnext"],
"module": "commonjs",
"noImplicitAny": true,
"outDir": "./dist_cli",
"target": "es6",
"outDir": "./dist",
"target": "ESNext",
"resolveJsonModule": true,
"skipLibCheck": true,
"typeRoots": ["node_modules/@types"]
Expand Down
4 changes: 2 additions & 2 deletions tsconfig-esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"compilerOptions": {
"moduleResolution": "node",
"module": "esnext",
"target": "es5",
"outDir": "dist_esm",
"target": "ESNext",
"outDir": "dist/esm",
"strict": true,
"declaration": false,
"typeRoots": ["node_modules/@types"]
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
"lib": ["dom", "esnext"],
"module": "commonjs",
"noImplicitAny": true,
"outDir": "dist/src",
"outDir": "dist/cjs/src",
"removeComments": true,
"sourceMap": true,
"strict": true,
"target": "es5",
"typeRoots": ["node_modules/@types"]
Expand Down
2 changes: 1 addition & 1 deletion webpack-cli.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
modules: true,
reasons: true,
},
entry: './dist_cli/src/cli/index.js',
entry: './dist/cli/src/cli/index.js',
output: {
path: path.resolve(__dirname, './bin/'),
filename: 'index.js',
Expand Down
5 changes: 2 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ const banner = `/*! ${pkg.name} - v${pkg.version} */`;

module.exports = {
mode: 'production',
devtool: 'source-map',
stats: {
colors: true,
modules: true,
reasons: true,
},
entry: './dist/src/index.js',
entry: './dist/cjs/src/index.js',
output: {
path: path.resolve(__dirname, './dist/'),
path: path.resolve(__dirname, './dist/cjs'),
filename: 'index.js',
library: 'soqlParserJs',
libraryTarget: 'umd',
Expand Down

0 comments on commit e4f0e59

Please sign in to comment.