innetjs 1.8.3 → 1.9.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/bin/innet CHANGED
@@ -162,22 +162,9 @@ class InnetJS {
162
162
  input: path__default["default"].resolve(this.srcFolder, `index.${indexExtension}`),
163
163
  plugins: [
164
164
  commonjs__default["default"](),
165
- pluginNodeResolve.nodeResolve(),
166
165
  json__default["default"](),
167
166
  typescript__default["default"](),
168
167
  jsx__default["default"](),
169
- string({
170
- include: '**/*.*',
171
- exclude: [
172
- '**/*.ts',
173
- '**/*.tsx',
174
- '**/*.js',
175
- '**/*.jsx',
176
- '**/*.json',
177
- '**/*.css',
178
- '**/*.scss',
179
- ]
180
- }),
181
168
  ]
182
169
  };
183
170
  const outputOptions = {
@@ -185,11 +172,34 @@ class InnetJS {
185
172
  sourcemap: this.sourcemap
186
173
  };
187
174
  if (node) {
188
- inputOptions.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
189
175
  outputOptions.format = 'cjs';
176
+ inputOptions.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
177
+ inputOptions.plugins.push(pluginNodeResolve.nodeResolve({
178
+ moduleDirectories: [path__default["default"].resolve(this.buildFolder, 'node_modules')]
179
+ }), string({
180
+ include: '**/*.*',
181
+ exclude: [
182
+ '**/*.ts',
183
+ '**/*.tsx',
184
+ '**/*.js',
185
+ '**/*.jsx',
186
+ '**/*.json',
187
+ ]
188
+ }));
190
189
  }
191
190
  else {
192
- inputOptions.plugins.push(postcss__default["default"]({
191
+ inputOptions.plugins.push(string({
192
+ include: '**/*.*',
193
+ exclude: [
194
+ '**/*.ts',
195
+ '**/*.tsx',
196
+ '**/*.js',
197
+ '**/*.jsx',
198
+ '**/*.json',
199
+ '**/*.css',
200
+ '**/*.scss',
201
+ ]
202
+ }), postcss__default["default"]({
193
203
  plugins: [autoprefixer__default["default"]()],
194
204
  extract: !this.cssInJs,
195
205
  modules: this.cssModules,
@@ -435,7 +445,7 @@ class InnetJS {
435
445
  }
436
446
  }
437
447
 
438
- var version = "1.8.3";
448
+ var version = "1.9.0";
439
449
 
440
450
  require('dotenv').config();
441
451
  const innetJS = new InnetJS();
package/index.es6.js CHANGED
@@ -138,22 +138,9 @@ class InnetJS {
138
138
  input: path.resolve(this.srcFolder, `index.${indexExtension}`),
139
139
  plugins: [
140
140
  commonjs(),
141
- nodeResolve(),
142
141
  json(),
143
142
  typescript(),
144
143
  jsx(),
145
- string({
146
- include: '**/*.*',
147
- exclude: [
148
- '**/*.ts',
149
- '**/*.tsx',
150
- '**/*.js',
151
- '**/*.jsx',
152
- '**/*.json',
153
- '**/*.css',
154
- '**/*.scss',
155
- ]
156
- }),
157
144
  ]
158
145
  };
159
146
  const outputOptions = {
@@ -161,11 +148,34 @@ class InnetJS {
161
148
  sourcemap: this.sourcemap
162
149
  };
163
150
  if (node) {
164
- inputOptions.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
165
151
  outputOptions.format = 'cjs';
152
+ inputOptions.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
153
+ inputOptions.plugins.push(nodeResolve({
154
+ moduleDirectories: [path.resolve(this.buildFolder, 'node_modules')]
155
+ }), string({
156
+ include: '**/*.*',
157
+ exclude: [
158
+ '**/*.ts',
159
+ '**/*.tsx',
160
+ '**/*.js',
161
+ '**/*.jsx',
162
+ '**/*.json',
163
+ ]
164
+ }));
166
165
  }
167
166
  else {
168
- inputOptions.plugins.push(postcss({
167
+ inputOptions.plugins.push(string({
168
+ include: '**/*.*',
169
+ exclude: [
170
+ '**/*.ts',
171
+ '**/*.tsx',
172
+ '**/*.js',
173
+ '**/*.jsx',
174
+ '**/*.json',
175
+ '**/*.css',
176
+ '**/*.scss',
177
+ ]
178
+ }), postcss({
169
179
  plugins: [autoprefixer()],
170
180
  extract: !this.cssInJs,
171
181
  modules: this.cssModules,
package/index.js CHANGED
@@ -160,22 +160,9 @@ class InnetJS {
160
160
  input: path__default["default"].resolve(this.srcFolder, `index.${indexExtension}`),
161
161
  plugins: [
162
162
  commonjs__default["default"](),
163
- pluginNodeResolve.nodeResolve(),
164
163
  json__default["default"](),
165
164
  typescript__default["default"](),
166
165
  jsx__default["default"](),
167
- string({
168
- include: '**/*.*',
169
- exclude: [
170
- '**/*.ts',
171
- '**/*.tsx',
172
- '**/*.js',
173
- '**/*.jsx',
174
- '**/*.json',
175
- '**/*.css',
176
- '**/*.scss',
177
- ]
178
- }),
179
166
  ]
180
167
  };
181
168
  const outputOptions = {
@@ -183,11 +170,34 @@ class InnetJS {
183
170
  sourcemap: this.sourcemap
184
171
  };
185
172
  if (node) {
186
- inputOptions.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
187
173
  outputOptions.format = 'cjs';
174
+ inputOptions.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
175
+ inputOptions.plugins.push(pluginNodeResolve.nodeResolve({
176
+ moduleDirectories: [path__default["default"].resolve(this.buildFolder, 'node_modules')]
177
+ }), string({
178
+ include: '**/*.*',
179
+ exclude: [
180
+ '**/*.ts',
181
+ '**/*.tsx',
182
+ '**/*.js',
183
+ '**/*.jsx',
184
+ '**/*.json',
185
+ ]
186
+ }));
188
187
  }
189
188
  else {
190
- inputOptions.plugins.push(postcss__default["default"]({
189
+ inputOptions.plugins.push(string({
190
+ include: '**/*.*',
191
+ exclude: [
192
+ '**/*.ts',
193
+ '**/*.tsx',
194
+ '**/*.js',
195
+ '**/*.jsx',
196
+ '**/*.json',
197
+ '**/*.css',
198
+ '**/*.scss',
199
+ ]
200
+ }), postcss__default["default"]({
191
201
  plugins: [autoprefixer__default["default"]()],
192
202
  extract: !this.cssInJs,
193
203
  modules: this.cssModules,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "1.8.3",
3
+ "version": "1.9.0",
4
4
  "description": "CLI for innet boilerplate",
5
5
  "homepage": "https://github.com/d8corp/innetjs",
6
6
  "author": "Mikhail Lysikov <d8corp@mail.ru>",
@@ -35,18 +35,18 @@
35
35
  "@rollup/plugin-commonjs": "^21.0.2",
36
36
  "@rollup/plugin-json": "^4.1.0",
37
37
  "@rollup/plugin-node-resolve": "^13.1.3",
38
- "autoprefixer": "^10.4.2",
38
+ "autoprefixer": "^10.4.4",
39
39
  "chalk": "^4.1.2",
40
40
  "cli-select": "^1.1.2",
41
- "commander": "^9.0.0",
41
+ "commander": "^9.1.0",
42
42
  "dotenv": "^16.0.0",
43
43
  "express": "^4.17.3",
44
44
  "express-http-proxy": "^1.6.3",
45
45
  "fs-extra": "^10.0.1",
46
46
  "node-sass": "^7.0.1",
47
- "postcss": "^8.4.7",
48
- "rollup": "^2.68.0",
49
- "rollup-plugin-innet-jsx": "^1.1.3",
47
+ "postcss": "^8.4.12",
48
+ "rollup": "^2.70.1",
49
+ "rollup-plugin-innet-jsx": "^1.2.0",
50
50
  "rollup-plugin-livereload": "^2.0.5",
51
51
  "rollup-plugin-postcss": "^4.0.2",
52
52
  "rollup-plugin-string": "^3.0.0",
@@ -8,6 +8,6 @@
8
8
  "innet": "^1.0.0"
9
9
  },
10
10
  "devDependencies": {
11
- "innetjs": "^1.8.3"
11
+ "innetjs": "^1.9.0"
12
12
  }
13
13
  }
@@ -9,6 +9,6 @@
9
9
  "watch-state": "^3.3.3"
10
10
  },
11
11
  "devDependencies": {
12
- "innetjs": "^1.8.3"
12
+ "innetjs": "^1.9.0"
13
13
  }
14
14
  }